Set Windows executable version from PROJECT_VERSION
This commit is contained in:
parent
1673ec3481
commit
6d5ee03e9e
|
@ -212,7 +212,13 @@ OPTIONS
|
|||
${MAIN_EXTRA_OPTIONS}
|
||||
)
|
||||
|
||||
add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\" -DDINO_VERSION=\"${PROJECT_VERSION}\")
|
||||
if (PROJECT_VERSION MATCHES "([0-9]+)[.]([0-9]+)[.]([0-9]+)")
|
||||
set(DINO_NUMERIC_VERSION "${CMAKE_MATCH_1},${CMAKE_MATCH_2},${CMAKE_MATCH_3},0")
|
||||
else()
|
||||
set(DINO_NUMERIC_VERSION "0,0,0,0")
|
||||
endif ()
|
||||
|
||||
add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\" -DDINO_VERSION=\"${PROJECT_VERSION}\" -DDINO_NUMERIC_VERSION=${DINO_NUMERIC_VERSION})
|
||||
if(WIN32)
|
||||
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> --use-temp-file -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
|
||||
add_executable(dino ${MAIN_VALA_C} ${MAIN_GRESOURCES_TARGET} src/emojichooser.c dino-info.rc)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
1 VERSIONINFO
|
||||
FILEVERSION 0,1,0,0
|
||||
PRODUCTVERSION 0,1,0,0
|
||||
FILEVERSION DINO_NUMERIC_VERSION
|
||||
PRODUCTVERSION DINO_NUMERIC_VERSION
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
|
@ -8,7 +8,7 @@ BEGIN
|
|||
BEGIN
|
||||
VALUE "CompanyName", "Dino"
|
||||
VALUE "FileDescription", "Dino - Modern XMPP (""Jabber"") Chat Client"
|
||||
VALUE "FileVersion", "0.1.0-win"
|
||||
VALUE "FileVersion", DINO_VERSION
|
||||
VALUE "InternalName", "dino"
|
||||
VALUE "LegalCopyright", "Dino"
|
||||
VALUE "OriginalFilename", "dino.exe"
|
||||
|
|
Loading…
Reference in a new issue