Mercurial > trustbridge
annotate ui/CMakeLists.txt @ 426:d7cda835abd6
Some wording and Layout in TrustBridge Administration.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 17 Apr 2014 12:06:57 +0200 |
parents | 7edfc9b9b360 |
children | d08e39b913ee |
rev | line source |
---|---|
405
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik |
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
2 # Software engineering by Intevation GmbH |
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
3 # |
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
4 # This file is Free Software under the GNU GPL (v>=2) |
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
5 # and comes with ABSOLUTELY NO WARRANTY! |
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
6 # See LICENSE.txt for details. |
35d6b371ba63
Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents:
369
diff
changeset
|
7 |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
8 include_directories(${Qt5Widgets_INCLUDE_DIRS}) |
57
d1aaee32e491
Include POLARSSL_INCLUDE_DIR in ui too
Andre Heinecke <aheinecke@intevation.de>
parents:
45
diff
changeset
|
9 include_directories(${POLARSSL_INCLUDE_DIR}) |
254
cb8d7af5ec3a
Include commmon in UI build to avoid having paths in include directives
Andre Heinecke <aheinecke@intevation.de>
parents:
211
diff
changeset
|
10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
11 add_definitions(${Qt5Widgets_DEFINITIONS}) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
12 |
411
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
13 find_package(Qt5LinguistTools) |
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
14 |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
15 set(CERTIFICATELIST_SOURCES |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
16 ${CMAKE_CURRENT_SOURCE_DIR}/certificatelist.cpp |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
17 ${CMAKE_CURRENT_SOURCE_DIR}/certificate.cpp |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
18 ) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
19 |
45
c6125d73faf4
Move SSLConnection into it's own class
Andre Heinecke <aheinecke@intevation.de>
parents:
39
diff
changeset
|
20 set(DOWNLOADER_SOURCES |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
21 ${CMAKE_CURRENT_SOURCE_DIR}/downloader.cpp |
45
c6125d73faf4
Move SSLConnection into it's own class
Andre Heinecke <aheinecke@intevation.de>
parents:
39
diff
changeset
|
22 ${CMAKE_CURRENT_SOURCE_DIR}/sslconnection.cpp |
c6125d73faf4
Move SSLConnection into it's own class
Andre Heinecke <aheinecke@intevation.de>
parents:
39
diff
changeset
|
23 ) |
c6125d73faf4
Move SSLConnection into it's own class
Andre Heinecke <aheinecke@intevation.de>
parents:
39
diff
changeset
|
24 |
407
af53c40e74b1
Rename m13ui to TrustBridge
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
25 set(TRUSTBRIDGE_SOURCES |
45
c6125d73faf4
Move SSLConnection into it's own class
Andre Heinecke <aheinecke@intevation.de>
parents:
39
diff
changeset
|
26 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
27 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp |
190
1a66a15d0df8
Added stub for help dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
124
diff
changeset
|
28 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp |
199
4790a26c2e8b
Added about dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
190
diff
changeset
|
29 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp |
211
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
199
diff
changeset
|
30 ${CMAKE_CURRENT_SOURCE_DIR}/statusdialog.cpp |
266
dd6a09d2699f
Added delegate for certificate list items to render a custom ui.
Raimund Renkert <rrenkert@intevation.de>
parents:
257
diff
changeset
|
31 ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp |
273
b6c2fa8457b6
Added new list item delegate for drawing a separator.
Raimund Renkert <rrenkert@intevation.de>
parents:
266
diff
changeset
|
32 ${CMAKE_CURRENT_SOURCE_DIR}/separatoritemdelegate.cpp |
257
06089ba2614a
Use Installwrapper to call certificate installation process
Andre Heinecke <aheinecke@intevation.de>
parents:
254
diff
changeset
|
33 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
34 ${CERTIFICATELIST_SOURCES} |
45
c6125d73faf4
Move SSLConnection into it's own class
Andre Heinecke <aheinecke@intevation.de>
parents:
39
diff
changeset
|
35 ${DOWNLOADER_SOURCES} |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
36 ) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
37 |
333
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
38 set(ADMINSTRATOR_SOURCES |
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
39 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp |
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
40 ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp |
335
811eec4e1b99
Use a table view with the new certificate table model in administrator app.
Raimund Renkert <rrenkert@intevation.de>
parents:
333
diff
changeset
|
41 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp |
348
e6aa82466420
Use the table item delegate for certificates and make the model editable.
Raimund Renkert <rrenkert@intevation.de>
parents:
335
diff
changeset
|
42 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetabledelegate.cpp |
362
857ae1ffdd6f
Open the new dialog from the main menu.
Raimund Renkert <rrenkert@intevation.de>
parents:
348
diff
changeset
|
43 ${CMAKE_CURRENT_SOURCE_DIR}/createinstallerdialog.cpp |
368
f9c98f9e9f76
Show the new dialog on save button click.
Raimund Renkert <rrenkert@intevation.de>
parents:
362
diff
changeset
|
44 ${CMAKE_CURRENT_SOURCE_DIR}/createcertlistdialog.cpp |
327
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
45 ${CERTIFICATELIST_SOURCES} |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
46 ) |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
47 |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
48 # Seperated to make it easier to include the sources in tests |
407
af53c40e74b1
Rename m13ui to TrustBridge
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
49 set(TRUSTBRIDGE_RESOURCES |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
50 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
51 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
52 ) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
53 |
333
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
54 set(ADMINSTRATOR_RESOURCES |
327
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
55 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
56 ) |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
57 |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
58 if(UNIX) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
59 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
60 # XCB_EXTRA_LIBS should be gotten automatically. |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
61 # The following list is taken from the .pri file |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
62 get_target_property(_loc Qt5::Widgets LOCATION) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
63 get_filename_component(_qtpath ${_loc} PATH) |
107
5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
Andre Heinecke <aheinecke@intevation.de>
parents:
81
diff
changeset
|
64 |
5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
Andre Heinecke <aheinecke@intevation.de>
parents:
81
diff
changeset
|
65 if(NOT XKBCOMMON_LIB) |
5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
Andre Heinecke <aheinecke@intevation.de>
parents:
81
diff
changeset
|
66 # Hack on a hack to overwrite the xkbcommon libname. |
5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
Andre Heinecke <aheinecke@intevation.de>
parents:
81
diff
changeset
|
67 set(XKBCOMMON_LIB -lxkbcommon) |
108 | 68 endif() |
107
5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
Andre Heinecke <aheinecke@intevation.de>
parents:
81
diff
changeset
|
69 |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
70 set(XCB_EXTRA_LIBS |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
71 -L${_qtpath} |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
72 -lX11 -lX11-xcb -lXi -lxcb-render-util -lXrender -lSM -lICE -lxcb-render -ldbus-1 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
73 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr |
107
5b9af103a355
Allow developers to overwrite the hardcoded xkb-common libname
Andre Heinecke <aheinecke@intevation.de>
parents:
81
diff
changeset
|
74 ${XKBCOMMON_LIB} -lxcb-shape -lxcb-keysyms -lQt5PlatformSupport |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
75 -lfreetype -lQt5DBus -lQt5Gui -ljpeg -lpng -lQt5Core |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
76 -lz -lm -ldl -lrt -lpthread) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
77 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
78 set(EXTRA_STATIC_LIBS -lz -lpthread -ldl -lpng -ljpeg |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
79 Qt5::QXcbIntegrationPlugin ${XCB_EXTRA_LIBS}) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
80 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
81 elseif(WIN32) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
82 get_target_property(_loc Qt5::Widgets LOCATION) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
83 get_filename_component(_qtpath ${_loc} PATH) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
84 set(WINDOWS_EXTRA_LIBS |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
85 -L${_qtpath} |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
86 -lwinspool -lshlwapi -lfreetype -lbz2 -lpng16 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
87 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
88 -lglu32 -lopengl32 -lgdi32 -ljpeg -lpng -lQt5Core -lole32 -luuid -lws2_32 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
89 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lsicuin -lsicuuc -lsicudt -lpcre16) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
90 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
91 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS} -lwinhttp -lcrypt32) |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
92 endif() |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
93 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
94 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
95 |
409
09bb19e5e369
Remove m13 mentions and change test certificate to intevation.de
Andre Heinecke <aheinecke@intevation.de>
parents:
408
diff
changeset
|
96 generate_cppcheck(SOURCES ${CINST_SOURCES} ${TRUSTBRIDGE_SOURCES} TARGET_NAME custom_cppcheck) |
09bb19e5e369
Remove m13 mentions and change test certificate to intevation.de
Andre Heinecke <aheinecke@intevation.de>
parents:
408
diff
changeset
|
97 add_dependencies(static_check custom_cppcheck) |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
98 |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
99 # Adding resources here in an extra variable to enable reuse of |
407
af53c40e74b1
Rename m13ui to TrustBridge
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
100 # TRUSTBRIDGE_SOURCES in the test subdirectory. |
af53c40e74b1
Rename m13ui to TrustBridge
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
101 set(TRUSTBRIDGE_SOURCES_WITH_RESOURCES ${TRUSTBRIDGE_SOURCES}) |
af53c40e74b1
Rename m13ui to TrustBridge
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
102 qt5_add_resources(TRUSTBRIDGE_SOURCES_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES}) |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
103 |
333
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
104 set(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_SOURCES}) |
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
105 qt5_add_resources(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_RESOURCES}) |
411
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
106 |
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
107 if(Qt5LinguistTools_FOUND) |
420
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
108 # Include translation as a resource |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
109 # This works in the source directory to enable the rcc dependencies to be found |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
110 # and it also updates the currently available localization. |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
111 # This would probably be better placed in a macro |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
112 configure_file(l10n/administrator.qrc.in administrator.qrc) |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
113 qt5_add_resources(ADMINISTRATOR_L10N ${CMAKE_CURRENT_BINARY_DIR}/administrator.qrc) |
411
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
114 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} |
420
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
115 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts) |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
116 add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
117 ${ADMINISTRATOR_L10N} |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
118 ${ADMINISTRATOR_TRANSLATION} |
16b6d5686835
Switch to resource based loading of translations
Andre Heinecke <aheinecke@intevation.de>
parents:
411
diff
changeset
|
119 ) |
421
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
120 |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
121 configure_file(l10n/trustbridge.qrc.in trustbridge.qrc) |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
122 qt5_add_resources(TRUSTBRIDGE_L10N ${CMAKE_CURRENT_BINARY_DIR}/trustbridge.qrc) |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
123 qt5_create_translation(TRUSTBRIDGE_TRANSLATION ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
124 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts) |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
125 add_executable(trustbridge ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES} |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
126 ${TRUSTBRIDGE_L10N} |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
127 ${TRUSTBRIDGE_TRANSLATION} |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
128 ) |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
129 |
411
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
130 else() |
421
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
131 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.") |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
132 add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
133 add_executable(trustbridge ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}) |
411
413b29f6758f
Add translation infrastructure and a file for the Administrator application
Andre Heinecke <aheinecke@intevation.de>
parents:
409
diff
changeset
|
134 endif() |
327
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
135 |
333
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
136 target_link_libraries(administrator Qt5::Widgets |
408
ac9e95ef6966
rename m13_common to trustbridge_common
Andre Heinecke <aheinecke@intevation.de>
parents:
407
diff
changeset
|
137 trustbridge_common |
327
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
138 ${POLARSSL_LIBRARIES} |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
139 ${EXTRA_STATIC_LIBS} |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
140 ${PROFILING_LIBS}) |
3261b2a9cab7
Added a first version of the management application gui.
Raimund Renkert <rrenkert@intevation.de>
parents:
273
diff
changeset
|
141 |
421
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
142 target_link_libraries(trustbridge Qt5::Widgets |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
143 trustbridge_common |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
144 ${POLARSSL_LIBRARIES} |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
145 ${EXTRA_STATIC_LIBS} |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
146 ${PROFILING_LIBS}) |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
147 |
7edfc9b9b360
Add translation for trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents:
420
diff
changeset
|
148 |
33
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
149 # Tests |
25c08d63d2b7
Add CMakeLists in UI
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
150 add_subdirectory(tests) |
124
2d50ff378367
Add install targets
Andre Heinecke <aheinecke@intevation.de>
parents:
109
diff
changeset
|
151 |
407
af53c40e74b1
Rename m13ui to TrustBridge
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
152 install(TARGETS trustbridge DESTINATION bin) |
333
de94c4ec22b1
Renamed management to administrator application.
Raimund Renkert <rrenkert@intevation.de>
parents:
327
diff
changeset
|
153 install(TARGETS administrator DESTINATION bin) |