diff --git a/CMakeLists.txt b/CMakeLists.txt index 66a5c5547..3c2424f42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} diff --git a/resources/executable_properties/rssguard_win.rc.in b/resources/executable_properties/rssguard_win.rc.in new file mode 100644 index 000000000..428a12e47 --- /dev/null +++ b/resources/executable_properties/rssguard_win.rc.in @@ -0,0 +1,30 @@ +IDI_ICON1 ICON DISCARDABLE "@PROJECT_SOURCE_DIR@/resources/graphics/rssguard.ico" + +#include + +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