Mercurial > trustbridge
changeset 497:5e77d1c4826c
Add Icon for Windows
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 25 Apr 2014 10:16:00 +0000 |
parents | fa3a7ebf0049 |
children | 5ec7d3a36ba6 |
files | ui/CMakeLists.txt ui/img/icon.ico |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/CMakeLists.txt Fri Apr 25 10:15:39 2014 +0000 +++ b/ui/CMakeLists.txt Fri Apr 25 10:16:00 2014 +0000 @@ -24,6 +24,12 @@ ${CMAKE_CURRENT_SOURCE_DIR}/createcertlistdialog.cpp ) +# Cmake does not correctly identify gcc windres when cross compiling +# making this line neccessary to set the correct flags for it. +# See: http://public.kitware.com/Bug/view.php?id=11773 +SET(CMAKE_RC_COMPILE_OBJECT + "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -Ocoff <SOURCE> <OBJECT>") + set(TRUSTBRIDGE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp @@ -32,6 +38,7 @@ ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp ${CMAKE_CURRENT_SOURCE_DIR}/separatoritemdelegate.cpp ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.rc ${CERTIFICATELIST_SOURCES} ${DOWNLOADER_SOURCES} )