Added windows executable properties script.

This commit is contained in:
Martin Rotter 2013-06-03 22:24:25 +02:00
parent 1cd3addabd
commit 00c117a578
2 changed files with 37 additions and 7 deletions

View File

@ -53,12 +53,12 @@ configure_file (
)
# Configure executable "properties" for Windows.
# if(WIN32)
# configure_file (
# ${PROJECT_SOURCE_DIR}/resources/qonverter_win.rc.in
# ${CMAKE_CURRENT_BINARY_DIR}/resources/qonverter_win.rc
# )
# endif(WIN32)
if(WIN32)
configure_file (
${PROJECT_SOURCE_DIR}/resources/executable_properties/rssguard_win.rc.in
${CMAKE_CURRENT_BINARY_DIR}/resources/rssguard_win.rc
)
endif(WIN32)
# Configure desktop entry for Linux.
if(UNIX)
@ -124,7 +124,7 @@ find_package(Qt5LinguistTools)
if(MINGW AND WIN32)
set(WINDRES windres.exe)
message(STATUS "[rssguard] MinGW compilation is selected. Icon file binary will be builded.")
message(STATUS "[rssguard] Used windres tool is: " ${WINDRES})
message(STATUS "[rssguard] Used windres tool is: " ${WINDRES} ".")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qonverter.o
COMMAND ${WINDRES} -I ${CMAKE_CURRENT_BINARY_DIR}

View File

@ -0,0 +1,30 @@
IDI_ICON1 ICON DISCARDABLE "@PROJECT_SOURCE_DIR@/resources/graphics/rssguard.ico"
#include <windows.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "@APP_AUTHOR@"
VALUE "FileDescription", "@APP_NAME@"
VALUE "FileVersion", "1.0.0.0"
VALUE "InternalName", "@APP_AUTHOR@"
VALUE "LegalCopyright", "Copyright © 2011-2013 Martin Rotter"
VALUE "LegalTrademarks1", "Some rights reserved"
VALUE "LegalTrademarks2", "Some rights reserved"
VALUE "OriginalFilename", "@EXE_NAME@.exe"
VALUE "ProductName", "@APP_NAME@"
VALUE "ProductVersion", "@APP_VERSION@"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END