comparison ui/CMakeLists.txt @ 558:bde15f68942b

Move main's out of the sources for better testing
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 22 May 2014 10:19:54 +0000
parents bedeb38c244a
children 3af16cbc961d
comparison
equal deleted inserted replaced
557:5cd525fc91de 558:bde15f68942b
27 # See: http://public.kitware.com/Bug/view.php?id=11773 27 # See: http://public.kitware.com/Bug/view.php?id=11773
28 SET(CMAKE_RC_COMPILE_OBJECT 28 SET(CMAKE_RC_COMPILE_OBJECT
29 "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -Ocoff <SOURCE> <OBJECT>") 29 "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -Ocoff <SOURCE> <OBJECT>")
30 30
31 set(TRUSTBRIDGE_SOURCES 31 set(TRUSTBRIDGE_SOURCES
32 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
33 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp 32 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp
34 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp 33 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp
35 ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp 34 ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp
36 ${CMAKE_CURRENT_SOURCE_DIR}/separatoritemdelegate.cpp 35 ${CMAKE_CURRENT_SOURCE_DIR}/separatoritemdelegate.cpp
37 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp 36 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp
40 ${CERTIFICATELIST_SOURCES} 39 ${CERTIFICATELIST_SOURCES}
41 ${DOWNLOADER_SOURCES} 40 ${DOWNLOADER_SOURCES}
42 ) 41 )
43 42
44 set(ADMINSTRATOR_SOURCES 43 set(ADMINSTRATOR_SOURCES
45 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp
46 ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp 44 ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp
47 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp 45 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp
48 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetabledelegate.cpp 46 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetabledelegate.cpp
49 ${CMAKE_CURRENT_SOURCE_DIR}/createinstallerdialog.cpp 47 ${CMAKE_CURRENT_SOURCE_DIR}/createinstallerdialog.cpp
50 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp 48 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp
126 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc) 124 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc)
127 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} 125 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}
128 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts) 126 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts)
129 add_executable(trustbridge-admin 127 add_executable(trustbridge-admin
130 ${_add_executable_params} 128 ${_add_executable_params}
129 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp
131 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} 130 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}
132 ${ADMINISTRATOR_L10N} 131 ${ADMINISTRATOR_L10N}
133 ${ADMINISTRATOR_TRANSLATION} 132 ${ADMINISTRATOR_TRANSLATION}
134 ) 133 )
135 134
137 qt5_add_resources(TRUSTBRIDGE_L10N ${CMAKE_CURRENT_BINARY_DIR}/trustbridge.qrc) 136 qt5_add_resources(TRUSTBRIDGE_L10N ${CMAKE_CURRENT_BINARY_DIR}/trustbridge.qrc)
138 qt5_create_translation(TRUSTBRIDGE_TRANSLATION ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} 137 qt5_create_translation(TRUSTBRIDGE_TRANSLATION ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}
139 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts) 138 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts)
140 add_executable(trustbridge 139 add_executable(trustbridge
141 ${_add_executable_params} 140 ${_add_executable_params}
141 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
142 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} 142 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}
143 ${TRUSTBRIDGE_L10N} 143 ${TRUSTBRIDGE_L10N}
144 ${TRUSTBRIDGE_TRANSLATION} 144 ${TRUSTBRIDGE_TRANSLATION}
145 ) 145 )
146 146
147 else() 147 else()
148 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.") 148 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.")
149 add_executable(trustbridge-admin 149 add_executable(trustbridge-admin
150 ${_add_executable_params} 150 ${_add_executable_params}
151 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp
151 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) 152 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES})
152 add_executable(trustbridge 153 add_executable(trustbridge
153 ${_add_executable_params} 154 ${_add_executable_params}
155 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
154 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}) 156 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES})
155 endif() 157 endif()
156 158
157 add_library(ui_common STATIC ${UICOMMON_SOURCES}) 159 add_library(ui_common STATIC ${UICOMMON_SOURCES})
158 160

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