Added configurable VERSION_INFO to TelldusCenter
This commit is contained in:
parent
551b0ce758
commit
679cd847a8
4 changed files with 30 additions and 3 deletions
|
@ -6,8 +6,11 @@ if(COMMAND cmake_policy)
|
|||
cmake_policy(SET CMP0003 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
SET(PACKAGE_VERSION 2.0.101)
|
||||
SET(PACKAGE_MAJOR_VERSION 2)
|
||||
SET(PACKAGE_MINOR_VERSION 0)
|
||||
SET(PACKAGE_PATCH_VERSION 101)
|
||||
SET(PACKAGE_SOVERSION 2)
|
||||
SET(PACKAGE_VERSION "${PACKAGE_MAJOR_VERSION}.${PACKAGE_MINOR_VERSION}.${PACKAGE_PATCH_VERSION}")
|
||||
SET(DISPLAYED_VERSION ${PACKAGE_VERSION})
|
||||
|
||||
SET(BRANDING "telldus" CACHE STRING "The brand to use")
|
||||
|
|
|
@ -60,6 +60,11 @@ IF (APPLE) #### Mac OS X ####
|
|||
|
||||
ELSEIF (WIN32) #### Windows ####
|
||||
ADD_DEFINITIONS( -DUNICODE )
|
||||
|
||||
CONFIGURE_FILE(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TelldusCenter.rc.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/TelldusCenter.rc
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${TELLDUSCORE_INCLUDE_DIR}
|
||||
|
@ -73,7 +78,7 @@ ELSEIF (WIN32) #### Windows ####
|
|||
)
|
||||
SET(telldus-center_SRCS
|
||||
${telldus-center_SRCS}
|
||||
resource.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/TelldusCenter.rc
|
||||
)
|
||||
ELSE (APPLE) #### Linux ####
|
||||
|
||||
|
|
20
telldus-gui/TelldusCenter/TelldusCenter.rc.in
Normal file
20
telldus-gui/TelldusCenter/TelldusCenter.rc.in
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <winresrc.h>
|
||||
|
||||
IDI_ICON1 ICON DISCARDABLE "${CMAKE_CURRENT_SOURCE_DIR}/images/TelldusCenter_logo.ico"
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION ${PACKAGE_MAJOR_VERSION},${PACKAGE_MINOR_VERSION},${PACKAGE_PATCH_VERSION},0
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "04090000"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Telldus Technologies AB"
|
||||
VALUE "FileDescription", "The home automation control center"
|
||||
VALUE "FileVersion", "${PACKAGE_VERSION}"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2010 Telldus Technologies AB"
|
||||
VALUE "OriginalFilename", "TelldusCenter.exe"
|
||||
VALUE "ProductName", "TelldusCenter"
|
||||
VALUE "ProductVersion", "${PACKAGE_MAJOR_VERSION}.${PACKAGE_MINOR_VERSION}"
|
||||
END
|
||||
END
|
||||
END
|
|
@ -1 +0,0 @@
|
|||
IDI_ICON1 ICON DISCARDABLE "images/TelldusCenter_logo.ico"
|
Loading…
Add table
Add a link
Reference in a new issue