From 839537af37f4c723c3e789466f63bc41aaa9dcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BENEDEK=20L=C3=A1szl=C3=B3?= Date: Fri, 31 May 2024 21:45:13 +0200 Subject: [PATCH] cmake options --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a22e74d..fcc5e07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,8 +16,15 @@ endif() include_directories("${CMAKE_SOURCE_DIR}/inc") +option(ENABLE_PLUGINS "Enable plugins" ON) +option(ENABLE_SERVER "Enable server" ON) + # build plugins -add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/plugins") +if(ENABLE_PLUGINS) + add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/plugins") +endif() # build gui server -add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/server") \ No newline at end of file +if(ENABLE_SERVER) + add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/server") +endif() \ No newline at end of file