cmake options

This commit is contained in:
BENEDEK László 2024-05-31 21:45:13 +02:00
parent 3694ebdcde
commit 839537af37

View File

@ -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")
if(ENABLE_SERVER)
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/server")
endif()