diff --git a/CMakeLists.txt b/CMakeLists.txt index f8292a12..3f33467f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ cmake_minimum_required (VERSION 3.4) project (synergy C CXX) +option (SYNERGY_BUILD_LEGACY_GUI "Build the legacy GUI (synergy)" ON) option (SYNERGY_BUILD_LEGACY_SERVICE "Build the legacy service (synergyd)" ON) option (SYNERGY_BUILD_LEGACY_INSTALLER "Build the installer" ON) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d6da3d8f..ab63a066 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,4 +19,6 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}/lib) add_subdirectory(lib) add_subdirectory(cmd) +if (SYNERGY_BUILD_LEGACY_GUI) add_subdirectory(gui) +endif (SYNERGY_BUILD_LEGACY_GUI)