Mercurial > trustbridge
comparison ui/CMakeLists.txt @ 336:26817025351f
merge
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 09 Apr 2014 13:49:59 +0000 |
parents | 811eec4e1b99 |
children | e6aa82466420 |
comparison
equal
deleted
inserted
replaced
332:81a205fc651e | 336:26817025351f |
---|---|
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 | 30 set(ADMINSTRATOR_SOURCES |
31 ${CMAKE_CURRENT_SOURCE_DIR}/management.cpp | 31 ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp |
32 ${CMAKE_CURRENT_SOURCE_DIR}/managementwindow.cpp | 32 ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp |
33 ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp | |
33 ${CERTIFICATELIST_SOURCES} | 34 ${CERTIFICATELIST_SOURCES} |
34 ) | 35 ) |
35 | 36 |
36 # Seperated to make it easier to include the sources in tests | 37 # Seperated to make it easier to include the sources in tests |
37 set(M13UI_RESOURCES | 38 set(M13UI_RESOURCES |
38 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc | 39 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc |
39 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc | 40 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc |
40 ) | 41 ) |
41 | 42 |
42 set(MANAGEMENT_RESOURCES | 43 set(ADMINSTRATOR_RESOURCES |
43 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc | 44 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc |
44 ) | 45 ) |
45 | 46 |
46 if(UNIX) | 47 if(UNIX) |
47 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 | 48 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 |
94 m13_common | 95 m13_common |
95 ${POLARSSL_LIBRARIES} | 96 ${POLARSSL_LIBRARIES} |
96 ${EXTRA_STATIC_LIBS} | 97 ${EXTRA_STATIC_LIBS} |
97 ${PROFILING_LIBS}) | 98 ${PROFILING_LIBS}) |
98 | 99 |
99 set(MANAGEMENT_SOURCES_WITH_RESOURCES ${MANAGEMENT_SOURCES}) | 100 set(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_SOURCES}) |
100 qt5_add_resources(MANAGEMENT_SOURCES_WITH_RESOURCES ${MANAGEMENT_RESOURCES}) | 101 qt5_add_resources(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_RESOURCES}) |
101 add_executable(management ${MANAGEMENT_SOURCES_WITH_RESOURCES}) | 102 add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) |
102 | 103 |
103 target_link_libraries(management Qt5::Widgets | 104 target_link_libraries(administrator Qt5::Widgets |
104 m13_common | 105 m13_common |
105 ${POLARSSL_LIBRARIES} | 106 ${POLARSSL_LIBRARIES} |
106 ${EXTRA_STATIC_LIBS} | 107 ${EXTRA_STATIC_LIBS} |
107 ${PROFILING_LIBS}) | 108 ${PROFILING_LIBS}) |
108 | 109 |
109 # Tests | 110 # Tests |
110 add_subdirectory(tests) | 111 add_subdirectory(tests) |
111 | 112 |
112 install(TARGETS m13ui DESTINATION bin) | 113 install(TARGETS m13ui DESTINATION bin) |
113 install(TARGETS management DESTINATION bin) | 114 install(TARGETS administrator DESTINATION bin) |