comparison ui/CMakeLists.txt @ 572:2459a7122532

Fix administrator typo
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 23 May 2014 16:20:26 +0000
parents 8728ae882b6a
children a677cffcaed4
comparison
equal deleted inserted replaced
571:6c4fff146999 572:2459a7122532
38 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp 38 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp
39 ${CERTIFICATELIST_SOURCES} 39 ${CERTIFICATELIST_SOURCES}
40 ${DOWNLOADER_SOURCES} 40 ${DOWNLOADER_SOURCES}
41 ) 41 )
42 42
43 set(ADMINSTRATOR_SOURCES 43 set(ADMINISTRATOR_SOURCES
44 ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp 44 ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp
45 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp 45 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp
46 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetabledelegate.cpp 46 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetabledelegate.cpp
47 ${CMAKE_CURRENT_SOURCE_DIR}/createinstallerdialog.cpp 47 ${CMAKE_CURRENT_SOURCE_DIR}/createinstallerdialog.cpp
48 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp 48 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp
55 set(TRUSTBRIDGE_RESOURCES 55 set(TRUSTBRIDGE_RESOURCES
56 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc 56 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc
57 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc 57 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc
58 ) 58 )
59 59
60 set(ADMINSTRATOR_RESOURCES 60 set(ADMINISTRATOR_RESOURCES
61 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc 61 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc
62 ) 62 )
63 63
64 if(UNIX) 64 if(UNIX)
65 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 65 # See: https://bugreports.qt-project.org/browse/QTBUG-35918
105 # Adding resources here in an extra variable to enable reuse of 105 # Adding resources here in an extra variable to enable reuse of
106 # TRUSTBRIDGE_SOURCES in the test subdirectory. 106 # TRUSTBRIDGE_SOURCES in the test subdirectory.
107 set(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) 107 set(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
108 qt5_add_resources(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES}) 108 qt5_add_resources(TRUSTBRIDGE_MAIN_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES})
109 109
110 set(ADMINSTRATOR_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(ADMINSTRATOR_MAIN_WITH_RESOURCES ${ADMINSTRATOR_RESOURCES}) 111 qt5_add_resources(ADMINISTRATOR_MAIN_WITH_RESOURCES ${ADMINISTRATOR_RESOURCES})
112 112
113 if(WIN32) 113 if(WIN32)
114 # This option causes cmake to use the appropiate liker flags to hide 114 # This option causes cmake to use the appropiate liker flags to hide
115 # the console Window on Windows 115 # the console Window on Windows
116 set (_add_executable_params WIN32) 116 set (_add_executable_params WIN32)
121 # This works in the source directory to enable the rcc dependencies to be found 121 # This works in the source directory to enable the rcc dependencies to be found
122 # and it also updates the currently available localization. 122 # and it also updates the currently available localization.
123 # This would probably be better placed in a macro 123 # This would probably be better placed in a macro
124 configure_file(l10n/administrator.qrc.in administrator.qrc) 124 configure_file(l10n/administrator.qrc.in administrator.qrc)
125 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc) 125 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc)
126 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES} 126 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINISTRATOR_SOURCES}
127 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts) 127 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts)
128 add_executable(trustbridge-admin 128 add_executable(trustbridge-admin
129 ${_add_executable_params} 129 ${_add_executable_params}
130 ${ADMINSTRATOR_MAIN_WITH_RESOURCES} 130 ${ADMINISTRATOR_MAIN_WITH_RESOURCES}
131 ${ADMINISTRATOR_L10N} 131 ${ADMINISTRATOR_L10N}
132 ${ADMINISTRATOR_TRANSLATION} 132 ${ADMINISTRATOR_TRANSLATION}
133 ) 133 )
134 134
135 configure_file(l10n/trustbridge.qrc.in trustbridge.qrc) 135 configure_file(l10n/trustbridge.qrc.in trustbridge.qrc)
145 145
146 else() 146 else()
147 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.") 147 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.")
148 add_executable(trustbridge-admin 148 add_executable(trustbridge-admin
149 ${_add_executable_params} 149 ${_add_executable_params}
150 ${ADMINSTRATOR_MAIN_WITH_RESOURCES}) 150 ${ADMINISTRATOR_MAIN_WITH_RESOURCES})
151 add_executable(trustbridge 151 add_executable(trustbridge
152 ${_add_executable_params} 152 ${_add_executable_params}
153 ${TRUSTBRIDGE_MAIN_WITH_RESOURCES}) 153 ${TRUSTBRIDGE_MAIN_WITH_RESOURCES})
154 endif() 154 endif()
155 155
156 add_library(ui_common STATIC ${UICOMMON_SOURCES}) 156 add_library(ui_common STATIC ${UICOMMON_SOURCES})
157 add_library(tbadminlib STATIC ${ADMINSTRATOR_SOURCES}) 157 add_library(tbadminlib STATIC ${ADMINISTRATOR_SOURCES})
158 add_library(tblib STATIC ${TRUSTBRIDGE_SOURCES}) 158 add_library(tblib STATIC ${TRUSTBRIDGE_SOURCES})
159 159
160 target_link_libraries(trustbridge-admin 160 target_link_libraries(trustbridge-admin
161 tbadminlib 161 tbadminlib
162 Qt5::Widgets 162 Qt5::Widgets

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