Mercurial > trustbridge
comparison ui/CMakeLists.txt @ 560:3af16cbc961d
Move UI code into librarys to speed up build of unit tests
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 22 May 2014 10:57:05 +0000 |
parents | bde15f68942b |
children | 4433f9d57f6d |
comparison
equal
deleted
inserted
replaced
559:dd8a295d5b4d | 560:3af16cbc961d |
---|---|
125 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} | 125 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} |
126 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts) | 126 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts) |
127 add_executable(trustbridge-admin | 127 add_executable(trustbridge-admin |
128 ${_add_executable_params} | 128 ${_add_executable_params} |
129 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp | 129 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp |
130 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} | |
131 ${ADMINISTRATOR_L10N} | 130 ${ADMINISTRATOR_L10N} |
132 ${ADMINISTRATOR_TRANSLATION} | 131 ${ADMINISTRATOR_TRANSLATION} |
133 ) | 132 ) |
134 | 133 |
135 configure_file(l10n/trustbridge.qrc.in trustbridge.qrc) | 134 configure_file(l10n/trustbridge.qrc.in trustbridge.qrc) |
137 qt5_create_translation(TRUSTBRIDGE_TRANSLATION ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} | 136 qt5_create_translation(TRUSTBRIDGE_TRANSLATION ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} |
138 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts) | 137 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts) |
139 add_executable(trustbridge | 138 add_executable(trustbridge |
140 ${_add_executable_params} | 139 ${_add_executable_params} |
141 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp | 140 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp |
142 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} | |
143 ${TRUSTBRIDGE_L10N} | 141 ${TRUSTBRIDGE_L10N} |
144 ${TRUSTBRIDGE_TRANSLATION} | 142 ${TRUSTBRIDGE_TRANSLATION} |
145 ) | 143 ) |
146 | 144 |
147 else() | 145 else() |
148 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.") | 146 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.") |
149 add_executable(trustbridge-admin | 147 add_executable(trustbridge-admin |
150 ${_add_executable_params} | 148 ${_add_executable_params} |
151 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp | 149 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp) |
152 ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) | |
153 add_executable(trustbridge | 150 add_executable(trustbridge |
154 ${_add_executable_params} | 151 ${_add_executable_params} |
155 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp | 152 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) |
156 ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}) | |
157 endif() | 153 endif() |
158 | 154 |
159 add_library(ui_common STATIC ${UICOMMON_SOURCES}) | 155 add_library(ui_common STATIC ${UICOMMON_SOURCES}) |
156 add_library(tbadminlib STATIC ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) | |
157 add_library(tblib STATIC ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}) | |
160 | 158 |
161 target_link_libraries(trustbridge-admin Qt5::Widgets | 159 target_link_libraries(trustbridge-admin |
160 tbadminlib | |
161 Qt5::Widgets | |
162 ui_common | 162 ui_common |
163 trustbridge_common | 163 trustbridge_common |
164 ${POLARSSL_LIBRARIES} | 164 ${POLARSSL_LIBRARIES} |
165 ${EXTRA_STATIC_LIBS} | 165 ${EXTRA_STATIC_LIBS} |
166 ${PROFILING_LIBS}) | 166 ${PROFILING_LIBS}) |
167 | 167 |
168 target_link_libraries(trustbridge Qt5::Widgets | 168 target_link_libraries(trustbridge |
169 tblib | |
170 Qt5::Widgets | |
169 ui_common | 171 ui_common |
170 trustbridge_common | 172 trustbridge_common |
171 ${POLARSSL_LIBRARIES} | 173 ${POLARSSL_LIBRARIES} |
172 ${EXTRA_STATIC_LIBS} | 174 ${EXTRA_STATIC_LIBS} |
173 ${PROFILING_LIBS}) | 175 ${PROFILING_LIBS}) |