comparison ui/CMakeLists.txt @ 520:09077eca0b0d

Rename administrator to trustbridge-admin
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 29 Apr 2014 09:33:22 +0000
parents ce8325686b09
children 3edbe1af2c85
comparison
equal deleted inserted replaced
519:6e11dc2f70d3 520:09077eca0b0d
10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) 10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
11 add_definitions(${Qt5Widgets_DEFINITIONS}) 11 add_definitions(${Qt5Widgets_DEFINITIONS})
12 12
13 find_package(Qt5LinguistTools) 13 find_package(Qt5LinguistTools)
14 14
15 # Common code is used in either the client or the administrat 15 # Common code is used in either the client or the administrator
16 # application or in unit tests. 16 # application or in unit tests.
17 set(UICOMMON_SOURCES 17 set(UICOMMON_SOURCES
18 ${CMAKE_CURRENT_SOURCE_DIR}/certificatelist.cpp 18 ${CMAKE_CURRENT_SOURCE_DIR}/certificatelist.cpp
19 ${CMAKE_CURRENT_SOURCE_DIR}/certificate.cpp 19 ${CMAKE_CURRENT_SOURCE_DIR}/certificate.cpp
20 ${CMAKE_CURRENT_SOURCE_DIR}/downloader.cpp 20 ${CMAKE_CURRENT_SOURCE_DIR}/downloader.cpp
124 # This would probably be better placed in a macro 124 # This would probably be better placed in a macro
125 configure_file(l10n/administrator.qrc.in administrator.qrc) 125 configure_file(l10n/administrator.qrc.in administrator.qrc)
126 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc) 126 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc)
127 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} 127 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}
128 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts) 128 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts)
129 add_executable(administrator 129 add_executable(trustbridge-admin
130 ${_add_executable_params} 130 ${_add_executable_params}
131 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} 131 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}
132 ${ADMINISTRATOR_L10N} 132 ${ADMINISTRATOR_L10N}
133 ${ADMINISTRATOR_TRANSLATION} 133 ${ADMINISTRATOR_TRANSLATION}
134 ) 134 )
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(administrator 149 add_executable(trustbridge-admin
150 ${_add_executable_params} 150 ${_add_executable_params}
151 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) 151 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES})
152 add_executable(trustbridge 152 add_executable(trustbridge
153 ${_add_executable_params} 153 ${_add_executable_params}
154 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}) 154 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES})
155 endif() 155 endif()
156 156
157 add_library(ui_common STATIC ${UICOMMON_SOURCES}) 157 add_library(ui_common STATIC ${UICOMMON_SOURCES})
158 158
159 target_link_libraries(administrator Qt5::Widgets 159 target_link_libraries(trustbridge-admin Qt5::Widgets
160 ui_common 160 ui_common
161 trustbridge_common 161 trustbridge_common
162 ${POLARSSL_LIBRARIES} 162 ${POLARSSL_LIBRARIES}
163 ${EXTRA_STATIC_LIBS} 163 ${EXTRA_STATIC_LIBS}
164 ${PROFILING_LIBS}) 164 ${PROFILING_LIBS})
173 173
174 # Tests 174 # Tests
175 add_subdirectory(tests) 175 add_subdirectory(tests)
176 176
177 install(TARGETS trustbridge DESTINATION bin) 177 install(TARGETS trustbridge DESTINATION bin)
178 install(TARGETS administrator DESTINATION bin) 178 install(TARGETS trustbridge-admin DESTINATION bin)

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