Mercurial > trustbridge
comparison CMakeLists.txt @ 104:2a031ac963b0
Check for qt before including UI
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 14:54:17 +0000 |
parents | ec0f4efefb7b |
children | 37198bd07182 |
comparison
equal
deleted
inserted
replaced
103:f61d94d7893e | 104:2a031ac963b0 |
---|---|
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) |