Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
ddec7e65
Commit
ddec7e65
authored
Jun 12, 2014
by
Fabio Bas
Browse files
Create CMake options for components
parent
eca318c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
ddec7e65
...
@@ -60,20 +60,28 @@ set(CMAKE_AUTOMOC TRUE)
...
@@ -60,20 +60,28 @@ set(CMAKE_AUTOMOC TRUE)
FIND_PACKAGE
(
Protobuf REQUIRED
)
FIND_PACKAGE
(
Protobuf REQUIRED
)
# Compile servatrice (default off)
# Compile servatrice (default off)
option
(
WITH_SERVER
"build servatrice"
OFF
)
add_subdirectory
(
common
)
add_subdirectory
(
common
)
if
(
WITH_SERVER
)
if
(
WITH_SERVER
)
add_subdirectory
(
servatrice
)
add_subdirectory
(
servatrice
)
endif
(
WITH_SERVER
)
endif
()
# Compile cockatrice+oracle (default on)
# Compile cockatrice (default on)
if
(
NOT WITHOUT_CLIENT
)
option
(
WITH_CLIENT
"build cockatrice"
ON
)
if
(
WITH_CLIENT
)
add_subdirectory
(
cockatrice
)
add_subdirectory
(
cockatrice
)
add_subdirectory
(
oracle
)
add_subdirectory
(
sounds
)
add_subdirectory
(
sounds
)
add_subdirectory
(
zonebg
)
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)
# Compile testclient (default off)
option
(
WITH_TESTCLIENT
"build testclient"
OFF
)
if
(
WITH_TESTCLIENT
)
if
(
WITH_TESTCLIENT
)
add_subdirectory
(
testclient
)
add_subdirectory
(
testclient
)
endif
(
WITH_TESTCLIENT
)
endif
()
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment