changeset 104:2a031ac963b0

Check for qt before including UI
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 14:54:17 +0000
parents f61d94d7893e
children faf96d9a1010 36ac0697339e
files CMakeLists.txt
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Mar 21 14:44:50 2014 +0000
+++ b/CMakeLists.txt	Fri Mar 21 14:54:17 2014 +0000
@@ -13,6 +13,9 @@
 include(GenerateCppcheck)
 
 find_package(PolarSSL)
+include_directories(${POLARSSL_INCLUDE_DIR})
+
+find_package(Qt5Widgets)
 
 # Use cmake's automoc and make sure the generated files are included
 set(CMAKE_AUTOMOC ON)
@@ -70,7 +73,13 @@
 endif (FLAWFINDER_PATH)
 
 add_subdirectory(cinst)
-add_subdirectory(ui)
+if(Qt5Widgets_FOUND)
+    add_subdirectory(ui)
+else()
+   message(STATUS "WARNING: Could not find qt. GUI parts will not be built.")
+endif()
+
+add_subdirectory(common)
 
 # Documentation
 configure_file (doc/Doxyfile.in doc/Doxyfile)

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