mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-14 17:47:21 +01:00
Added windows executable properties script.
This commit is contained in:
parent
1cd3addabd
commit
00c117a578
@ -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}
|
||||
|
30
resources/executable_properties/rssguard_win.rc.in
Normal file
30
resources/executable_properties/rssguard_win.rc.in
Normal 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
|
Loading…
Reference in New Issue
Block a user