Mercurial > trustbridge
comparison CMakeLists.txt @ 111:36ac0697339e
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 15:59:46 +0100 |
parents | 2a031ac963b0 |
children | 37198bd07182 |
comparison
equal
deleted
inserted
replaced
110:0c8ea71a89cd | 111:36ac0697339e |
---|---|
11 | 11 |
12 include(CTest) | 12 include(CTest) |
13 include(GenerateCppcheck) | 13 include(GenerateCppcheck) |
14 | 14 |
15 find_package(PolarSSL) | 15 find_package(PolarSSL) |
16 include_directories(${POLARSSL_INCLUDE_DIR}) | |
17 | |
18 find_package(Qt5Widgets) | |
16 | 19 |
17 # Use cmake's automoc and make sure the generated files are included | 20 # Use cmake's automoc and make sure the generated files are included |
18 set(CMAKE_AUTOMOC ON) | 21 set(CMAKE_AUTOMOC ON) |
19 set(CMAKE_INCLUDE_CURRENT_DIR ON) | 22 set(CMAKE_INCLUDE_CURRENT_DIR ON) |
20 | 23 |
68 ) | 71 ) |
69 add_dependencies(static_check flawfinder) | 72 add_dependencies(static_check flawfinder) |
70 endif (FLAWFINDER_PATH) | 73 endif (FLAWFINDER_PATH) |
71 | 74 |
72 add_subdirectory(cinst) | 75 add_subdirectory(cinst) |
73 add_subdirectory(ui) | 76 if(Qt5Widgets_FOUND) |
77 add_subdirectory(ui) | |
78 else() | |
79 message(STATUS "WARNING: Could not find qt. GUI parts will not be built.") | |
80 endif() | |
81 | |
82 add_subdirectory(common) | |
74 | 83 |
75 # Documentation | 84 # Documentation |
76 configure_file (doc/Doxyfile.in doc/Doxyfile) | 85 configure_file (doc/Doxyfile.in doc/Doxyfile) |
77 add_subdirectory(doc) | 86 add_subdirectory(doc) |