mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-12 23:59:34 -08:00
Create CMake options for components
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user