comparison ui/CMakeLists.txt @ 576:a677cffcaed4

Readd icon to the resource files (have to be linked with main)
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 26 May 2014 15:28:10 +0000
parents 2459a7122532
children 9cdc14373a5d
comparison
equal deleted inserted replaced
575:ab2d62fe2815 576:a677cffcaed4
32 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp 32 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp
33 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp 33 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp
34 ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp 34 ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp
35 ${CMAKE_CURRENT_SOURCE_DIR}/separatoritemdelegate.cpp 35 ${CMAKE_CURRENT_SOURCE_DIR}/separatoritemdelegate.cpp
36 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp 36 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp
37 ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.rc
38 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp 37 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp
39 ${CERTIFICATELIST_SOURCES} 38 ${CERTIFICATELIST_SOURCES}
40 ${DOWNLOADER_SOURCES} 39 ${DOWNLOADER_SOURCES}
41 ) 40 )
42 41
102 generate_cppcheck(SOURCES ${CINST_SOURCES} ${TRUSTBRIDGE_SOURCES} TARGET_NAME custom_cppcheck) 101 generate_cppcheck(SOURCES ${CINST_SOURCES} ${TRUSTBRIDGE_SOURCES} TARGET_NAME custom_cppcheck)
103 add_dependencies(static_check custom_cppcheck) 102 add_dependencies(static_check custom_cppcheck)
104 103
105 # Adding resources here in an extra variable to enable reuse of 104 # Adding resources here in an extra variable to enable reuse of
106 # TRUSTBRIDGE_SOURCES in the test subdirectory. 105 # TRUSTBRIDGE_SOURCES in the test subdirectory.
107 set(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) 106 set(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
107 ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.rc)
108 qt5_add_resources(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES}) 108 qt5_add_resources(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES})
109 109
110 set(ADMINISTRATOR_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp) 110 set(ADMINISTRATOR_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp)
111 qt5_add_resources(ADMINISTRATOR_MAIN_WITH_RESOURCES ${ADMINISTRATOR_RESOURCES}) 111 qt5_add_resources(ADMINISTRATOR_MAIN_WITH_RESOURCES ${ADMINISTRATOR_RESOURCES})
112 112

http://wald.intevation.org/projects/trustbridge/