comparison ui/CMakeLists.txt @ 327:3261b2a9cab7

Added a first version of the management application gui.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 08 Apr 2014 16:28:07 +0200
parents b6c2fa8457b6
children de94c4ec22b1
comparison
equal deleted inserted replaced
326:ad28f6b60e6b 327:3261b2a9cab7
25 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp 25 ${CMAKE_CURRENT_SOURCE_DIR}/installwrapper.cpp
26 ${CERTIFICATELIST_SOURCES} 26 ${CERTIFICATELIST_SOURCES}
27 ${DOWNLOADER_SOURCES} 27 ${DOWNLOADER_SOURCES}
28 ) 28 )
29 29
30 set(MANAGEMENT_SOURCES
31 ${CMAKE_CURRENT_SOURCE_DIR}/management.cpp
32 ${CMAKE_CURRENT_SOURCE_DIR}/managementwindow.cpp
33 ${CERTIFICATELIST_SOURCES}
34 )
35
30 # Seperated to make it easier to include the sources in tests 36 # Seperated to make it easier to include the sources in tests
31 set(M13UI_RESOURCES 37 set(M13UI_RESOURCES
32 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc 38 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc
33 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc 39 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc
40 )
41
42 set(MANAGEMENT_RESOURCES
43 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc
34 ) 44 )
35 45
36 if(UNIX) 46 if(UNIX)
37 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 47 # See: https://bugreports.qt-project.org/browse/QTBUG-35918
38 # XCB_EXTRA_LIBS should be gotten automatically. 48 # XCB_EXTRA_LIBS should be gotten automatically.
84 m13_common 94 m13_common
85 ${POLARSSL_LIBRARIES} 95 ${POLARSSL_LIBRARIES}
86 ${EXTRA_STATIC_LIBS} 96 ${EXTRA_STATIC_LIBS}
87 ${PROFILING_LIBS}) 97 ${PROFILING_LIBS})
88 98
99 set(MANAGEMENT_SOURCES_WITH_RESOURCES ${MANAGEMENT_SOURCES})
100 qt5_add_resources(MANAGEMENT_SOURCES_WITH_RESOURCES ${MANAGEMENT_RESOURCES})
101 add_executable(management ${MANAGEMENT_SOURCES_WITH_RESOURCES})
102
103 target_link_libraries(management Qt5::Widgets
104 m13_common
105 ${POLARSSL_LIBRARIES}
106 ${EXTRA_STATIC_LIBS}
107 ${PROFILING_LIBS})
108
89 # Tests 109 # Tests
90 add_subdirectory(tests) 110 add_subdirectory(tests)
91 111
92 install(TARGETS m13ui DESTINATION bin) 112 install(TARGETS m13ui DESTINATION bin)
113 install(TARGETS management DESTINATION bin)

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