cmake options
This commit is contained in:
parent
3694ebdcde
commit
839537af37
@ -16,8 +16,15 @@ endif()
|
|||||||
|
|
||||||
include_directories("${CMAKE_SOURCE_DIR}/inc")
|
include_directories("${CMAKE_SOURCE_DIR}/inc")
|
||||||
|
|
||||||
|
option(ENABLE_PLUGINS "Enable plugins" ON)
|
||||||
|
option(ENABLE_SERVER "Enable server" ON)
|
||||||
|
|
||||||
# build plugins
|
# build plugins
|
||||||
|
if(ENABLE_PLUGINS)
|
||||||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/plugins")
|
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/plugins")
|
||||||
|
endif()
|
||||||
|
|
||||||
# build gui server
|
# build gui server
|
||||||
|
if(ENABLE_SERVER)
|
||||||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/server")
|
add_subdirectory("${CMAKE_SOURCE_DIR}/src/graph/server")
|
||||||
|
endif()
|
Loading…
Reference in New Issue
Block a user