diff options
author | Hector Martin | 2010-04-11 17:11:08 +0200 |
---|---|---|
committer | Hector Martin | 2010-04-11 17:18:50 +0200 |
commit | 3066c08a0db54729af639e128b4e9fe4fdc8c008 (patch) | |
tree | d1917b1b8ea7783bf4b566129088bab2258ef3cc /CMakeLists.txt | |
parent | 34524ac4e8075f0fc330759fd42b4d4873f27019 (diff) | |
download | usbmuxd-3066c08a0db54729af639e128b4e9fe4fdc8c008.tar.gz usbmuxd-3066c08a0db54729af639e128b4e9fe4fdc8c008.tar.bz2 |
Add automatic git versioning and tag for archives
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fb99b4c..7dbeec1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,16 @@ PROJECT(usbmuxd) -set(USBMUXD_VERSION "1.0.0") -set(LIBUSBMUXD_VERSION "${USBMUXD_VERSION}") +cmake_minimum_required(VERSION 2.6) + +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/") + +include(VersionTag) + +set(USBMUXD_VERSION "${VERSION_TAG}") +set(LIBUSBMUXD_VERSION "${VERSION_TAG}") set(LIBUSBMUXD_SOVERSION "1") -cmake_minimum_required(VERSION 2.6) +message("-- Configuring usbmuxd v${VERSION_TAG}") if(NOT DEFINED LIB_SUFFIX) if(CMAKE_SIZEOF_VOID_P EQUAL 8) |