Added telldus-core version to CMake

This commit is contained in:
Micke Prag 2009-08-20 12:06:48 +00:00
parent 5b0b940f79
commit 25f485d0ff
3 changed files with 5 additions and 1 deletions

View file

@ -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")

View file

@ -13,6 +13,8 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/driver
)
ADD_DEFINITIONS( -DVERSION='"${DISPLAYED_VERSION}"' )
IF (APPLE)
TARGET_LINK_LIBRARIES(tdtool
TelldusCore

View file

@ -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 <info.tech@telldus.se>\n");
}