comparison ui/CMakeLists.txt @ 407:af53c40e74b1

Rename m13ui to TrustBridge
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 16 Apr 2014 13:38:11 +0000
parents 35d6b371ba63
children ac9e95ef6966
comparison
equal deleted inserted replaced
406:5ee694fa3da7 407:af53c40e74b1
18 set(DOWNLOADER_SOURCES 18 set(DOWNLOADER_SOURCES
19 ${CMAKE_CURRENT_SOURCE_DIR}/downloader.cpp 19 ${CMAKE_CURRENT_SOURCE_DIR}/downloader.cpp
20 ${CMAKE_CURRENT_SOURCE_DIR}/sslconnection.cpp 20 ${CMAKE_CURRENT_SOURCE_DIR}/sslconnection.cpp
21 ) 21 )
22 22
23 set(M13UI_SOURCES 23 set(TRUSTBRIDGE_SOURCES
24 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp 24 ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp
25 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp 25 ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
26 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp 26 ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp
27 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp 27 ${CMAKE_CURRENT_SOURCE_DIR}/aboutdialog.cpp
28 ${CMAKE_CURRENT_SOURCE_DIR}/statusdialog.cpp 28 ${CMAKE_CURRENT_SOURCE_DIR}/statusdialog.cpp
42 ${CMAKE_CURRENT_SOURCE_DIR}/createcertlistdialog.cpp 42 ${CMAKE_CURRENT_SOURCE_DIR}/createcertlistdialog.cpp
43 ${CERTIFICATELIST_SOURCES} 43 ${CERTIFICATELIST_SOURCES}
44 ) 44 )
45 45
46 # Seperated to make it easier to include the sources in tests 46 # Seperated to make it easier to include the sources in tests
47 set(M13UI_RESOURCES 47 set(TRUSTBRIDGE_RESOURCES
48 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc 48 ${CMAKE_CURRENT_SOURCE_DIR}/icons.qrc
49 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc 49 ${CMAKE_CURRENT_SOURCE_DIR}/certs.qrc
50 ) 50 )
51 51
52 set(ADMINSTRATOR_RESOURCES 52 set(ADMINSTRATOR_RESOURCES
89 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS} -lwinhttp -lcrypt32) 89 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS} -lwinhttp -lcrypt32)
90 endif() 90 endif()
91 91
92 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") 92 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
93 93
94 generate_cppcheck(SOURCES ${CINST_SOURCES} ${M13UI_SOURCES} TARGET_NAME m13_cppcheck) 94 generate_cppcheck(SOURCES ${CINST_SOURCES} ${TRUSTBRIDGE_SOURCES} TARGET_NAME m13_cppcheck)
95 add_dependencies(static_check m13_cppcheck) 95 add_dependencies(static_check m13_cppcheck)
96 96
97 # Adding resources here in an extra variable to enable reuse of 97 # Adding resources here in an extra variable to enable reuse of
98 # M13UI_SOURCES in the test subdirectory. 98 # TRUSTBRIDGE_SOURCES in the test subdirectory.
99 set(M13UI_SOURCES_WITH_RESOURCES ${M13UI_SOURCES}) 99 set(TRUSTBRIDGE_SOURCES_WITH_RESOURCES ${TRUSTBRIDGE_SOURCES})
100 qt5_add_resources(M13UI_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES}) 100 qt5_add_resources(TRUSTBRIDGE_SOURCES_WITH_RESOURCES ${TRUSTBRIDGE_RESOURCES})
101 add_executable(m13ui ${M13UI_SOURCES_WITH_RESOURCES}) 101 add_executable(trustbridge ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES})
102 102
103 target_link_libraries(m13ui Qt5::Widgets 103 target_link_libraries(trustbridge Qt5::Widgets
104 m13_common 104 m13_common
105 ${POLARSSL_LIBRARIES} 105 ${POLARSSL_LIBRARIES}
106 ${EXTRA_STATIC_LIBS} 106 ${EXTRA_STATIC_LIBS}
107 ${PROFILING_LIBS}) 107 ${PROFILING_LIBS})
108 108
117 ${PROFILING_LIBS}) 117 ${PROFILING_LIBS})
118 118
119 # Tests 119 # Tests
120 add_subdirectory(tests) 120 add_subdirectory(tests)
121 121
122 install(TARGETS m13ui DESTINATION bin) 122 install(TARGETS trustbridge DESTINATION bin)
123 install(TARGETS administrator DESTINATION bin) 123 install(TARGETS administrator DESTINATION bin)

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