# HG changeset patch # User Andre Heinecke # Date 1395413657 0 # Node ID 2a031ac963b015d26acd4edf58b62d3725f527e0 # Parent f61d94d7893e00a0f788c1666f49afd1104f399a Check for qt before including UI diff -r f61d94d7893e -r 2a031ac963b0 CMakeLists.txt --- 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)