Added telldus-core version to CMake
This commit is contained in:
parent
5b0b940f79
commit
25f485d0ff
3 changed files with 5 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -13,6 +13,8 @@ INCLUDE_DIRECTORIES(
|
|||
${CMAKE_SOURCE_DIR}/driver
|
||||
)
|
||||
|
||||
ADD_DEFINITIONS( -DVERSION='"${DISPLAYED_VERSION}"' )
|
||||
|
||||
IF (APPLE)
|
||||
TARGET_LINK_LIBRARIES(tdtool
|
||||
TelldusCore
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue