diff --git a/telldus-core/CMakeLists.txt b/telldus-core/CMakeLists.txt index aea61887..2b491af2 100644 --- a/telldus-core/CMakeLists.txt +++ b/telldus-core/CMakeLists.txt @@ -9,6 +9,8 @@ endif(COMMAND cmake_policy) SET(PACKAGE_VERSION 2) SET(PACKAGE_SOVERSION 2.0.0) +SET(DISPLAYED_VERSION 2.0.0_beta1) + SET(BUILD_LIBTELLDUS-CORE TRUE CACHE BOOL "Build libtelldus-core") SET(SUPPORT_TELLSTICK_DUO FALSE CACHE BOOL "Include support for TellStick Duo") SET(SUPPORT_USB TRUE CACHE BOOL "Build support for usb-devices") diff --git a/telldus-core/tdtool/CMakeLists.txt b/telldus-core/tdtool/CMakeLists.txt index f6ad6b61..b7bbe89b 100644 --- a/telldus-core/tdtool/CMakeLists.txt +++ b/telldus-core/tdtool/CMakeLists.txt @@ -13,6 +13,8 @@ INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/driver ) +ADD_DEFINITIONS( -DVERSION='"${DISPLAYED_VERSION}"' ) + IF (APPLE) TARGET_LINK_LIBRARIES(tdtool TelldusCore diff --git a/telldus-core/tdtool/main.cpp b/telldus-core/tdtool/main.cpp index 6d756e5a..512690c9 100644 --- a/telldus-core/tdtool/main.cpp +++ b/telldus-core/tdtool/main.cpp @@ -57,7 +57,7 @@ void print_usage( char *name ) { } void print_version() { - printf("tdtool 2.0\n"); + printf("tdtool " VERSION "\n"); printf("\n"); printf("Report bugs to \n"); }