|
@@ -5,7 +5,8 @@ project(fancontroller)
|
|
|
include(FeatureSummary)
|
|
|
|
|
|
option(NO_SYSTEMD "Compile without Systemd support. Reduces functionality significantly!")
|
|
|
-option(BUILD_LIB_ONLY "Compile the shared library only")
|
|
|
+option(BUILD_CORE "Compile the shared library")
|
|
|
+option(BUILD_GUI "Compile the GUI")
|
|
|
|
|
|
#Find Qt5
|
|
|
find_package(Qt5 COMPONENTS Widgets Qml Quick REQUIRED)
|
|
@@ -49,8 +50,17 @@ else(NOT NO_SYSTEMD AND SYSTEMD_FOUND AND Qt5DBus_FOUND)
|
|
|
|
|
|
endif(NOT NO_SYSTEMD AND SYSTEMD_FOUND AND Qt5DBus_FOUND)
|
|
|
|
|
|
-add_subdirectory(helper)
|
|
|
-add_subdirectory(share)
|
|
|
-if(NOT BUILD_LIB_ONLY)
|
|
|
+if(BUILD_CORE)
|
|
|
+
|
|
|
+ message(STATUS "Compile core")
|
|
|
+ add_subdirectory(helper)
|
|
|
+ add_subdirectory(share)
|
|
|
+
|
|
|
+endif(BUILD_CORE)
|
|
|
+
|
|
|
+if(BUILD_GUI)
|
|
|
+
|
|
|
+ message(STATUS "Compile GUI")
|
|
|
add_subdirectory(fancontrol-gui)
|
|
|
-endif(NOT BUILD_LIB_ONLY)
|
|
|
+
|
|
|
+endif(BUILD_GUI)
|