From f0601119ab8e92a470b6566c182aef003e79a0c0 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Wed, 16 Nov 2016 16:19:25 +0000 Subject: [PATCH] Option to build service or not --- CMakeLists.txt | 2 ++ src/cmd/CMakeLists.txt | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67437548..ab3bfe8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -364,3 +364,5 @@ if (CONF_DOXYGEN) configure_file(${cmake_dir}/doxygen.cfg.in ${doc_dir}/doxygen.cfg) endif() + +option(BUILD_SERVICE "Build synergyd" ON) diff --git a/src/cmd/CMakeLists.txt b/src/cmd/CMakeLists.txt index 7a7ed82a..2adf419e 100644 --- a/src/cmd/CMakeLists.txt +++ b/src/cmd/CMakeLists.txt @@ -16,10 +16,13 @@ add_subdirectory(synergyc) add_subdirectory(synergys) -add_subdirectory(synergyd) add_subdirectory(usynergy) add_subdirectory(syntool) +if (BUILD_SERVICE) + add_subdirectory(synergyd) +endif (BUILD_SERVICE) + if (WIN32) add_subdirectory(synergyp) endif()