summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 682b42d..95ce156 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,10 +30,6 @@ set(PROJECT_AUTHOR_MAIL "fulup@iot.bzh")
set(PROJECT_LICENSE "APL2.0")
set(PROJECT_LANGUAGES "C")
-# Add target to project dependency list
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-
if(NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
@@ -93,6 +89,11 @@ if(${AFB_HELPERS})
endif()
if(${AFB_HELPERS_QT})
+ message(STATUS "Qt's support enabled!")
+ # Add target to project dependency list
+ set(CMAKE_AUTOMOC ON)
+ set(CMAKE_AUTORCC ON)
+
find_package(Qt5WebSockets REQUIRED)
set(AFB_HELPERS_QT_HEADERS qafbwebsocketclient.h)