Malte Veerman 10 лет назад
Родитель
Сommit
86eec8305b
2 измененных файлов с 15 добавлено и 6 удалено
  1. 15 5
      CMakeLists.txt
  2. 0 1
      helper/src/helper.h

+ 15 - 5
CMakeLists.txt

@@ -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)

+ 0 - 1
helper/src/helper.h

@@ -18,7 +18,6 @@
  */
 
 #include <KAuth>
-#include <QtDBus/QtDBus>
 
 using namespace KAuth;