Create CMake options for components
This commit is contained in:
parent
eca318c34d
commit
ddec7e6561
1 changed files with 14 additions and 6 deletions
|
@ -60,20 +60,28 @@ set(CMAKE_AUTOMOC TRUE)
|
|||
FIND_PACKAGE(Protobuf REQUIRED)
|
||||
|
||||
# Compile servatrice (default off)
|
||||
option(WITH_SERVER "build servatrice" OFF)
|
||||
add_subdirectory(common)
|
||||
if(WITH_SERVER)
|
||||
add_subdirectory(servatrice)
|
||||
endif(WITH_SERVER)
|
||||
endif()
|
||||
|
||||
# Compile cockatrice+oracle (default on)
|
||||
if (NOT WITHOUT_CLIENT)
|
||||
# Compile cockatrice (default on)
|
||||
option(WITH_CLIENT "build cockatrice" ON)
|
||||
if(WITH_CLIENT)
|
||||
add_subdirectory(cockatrice)
|
||||
add_subdirectory(oracle)
|
||||
add_subdirectory(sounds)
|
||||
add_subdirectory(zonebg)
|
||||
endif(NOT WITHOUT_CLIENT)
|
||||
endif()
|
||||
|
||||
# Compile oracle (default on)
|
||||
option(WITH_ORACLE "build oracle" ON)
|
||||
if(WITH_ORACLE)
|
||||
add_subdirectory(oracle)
|
||||
endif()
|
||||
|
||||
# Compile testclient (default off)
|
||||
option(WITH_TESTCLIENT "build testclient" OFF)
|
||||
if (WITH_TESTCLIENT)
|
||||
add_subdirectory(testclient)
|
||||
endif(WITH_TESTCLIENT)
|
||||
endif()
|
Loading…
Reference in a new issue