Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/CMakeLists.txt Mon Apr 07 14:50:08 2014 +0000 +++ b/ui/CMakeLists.txt Tue Apr 08 16:28:07 2014 +0200 @@ -27,12 +27,22 @@ ${DOWNLOADER_SOURCES} ) +set(MANAGEMENT_SOURCES + ${CMAKE_CURRENT_SOURCE_DIR}/management.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/managementwindow.cpp + ${CERTIFICATELIST_SOURCES} +) + # Seperated to make it easier to include the sources in tests set(M13UI_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc ) +set(MANAGEMENT_RESOURCES + ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc +) + if(UNIX) # See: https://bugreports.qt-project.org/browse/QTBUG-35918 # XCB_EXTRA_LIBS should be gotten automatically. @@ -86,7 +96,18 @@ ${EXTRA_STATIC_LIBS} ${PROFILING_LIBS}) +set(MANAGEMENT_SOURCES_WITH_RESOURCES ${MANAGEMENT_SOURCES}) +qt5_add_resources(MANAGEMENT_SOURCES_WITH_RESOURCES ${MANAGEMENT_RESOURCES}) +add_executable(management ${MANAGEMENT_SOURCES_WITH_RESOURCES}) + +target_link_libraries(management Qt5::Widgets + m13_common + ${POLARSSL_LIBRARIES} + ${EXTRA_STATIC_LIBS} + ${PROFILING_LIBS}) + # Tests add_subdirectory(tests) install(TARGETS m13ui DESTINATION bin) +install(TARGETS management DESTINATION bin)