aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorROllerozxa <rollerozxa@voxelmanip.se>2023-01-09 20:34:13 +0100
committerGitHub <noreply@github.com>2023-01-09 20:34:13 +0100
commitd0b6f217ae4743ee0caa44b90c53e0e8ae2d1e31 (patch)
treed1bf51e4a0abb7fdb0176cbdea36d12f1a0b3d83 /CMakeLists.txt
parent390b5caaaacc7ba504d87331dad116208d90a6e7 (diff)
downloadminetest-d0b6f217ae4743ee0caa44b90c53e0e8ae2d1e31.tar.xz
Add option to exclude Development Test from release packages (#13081)
* `INSTALL_DEVTEST` is the option name
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 41d5c8707..8959f6129 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -249,8 +249,13 @@ endif()
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest_game" DESTINATION "${SHAREDIR}/games/"
COMPONENT "SUBGAME_MINETEST_GAME" OPTIONAL PATTERN ".git*" EXCLUDE )
-install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/devtest" DESTINATION "${SHAREDIR}/games/"
- COMPONENT "SUBGAME_MINIMAL" OPTIONAL PATTERN ".git*" EXCLUDE )
+
+set(INSTALL_DEVTEST FALSE CACHE BOOL "Install Development Test")
+
+if(INSTALL_DEVTEST)
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/devtest" DESTINATION "${SHAREDIR}/games/"
+ PATTERN ".git*" EXCLUDE )
+endif()
if(BUILD_CLIENT)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/client/shaders" DESTINATION "${SHAREDIR}/client")
@@ -322,13 +327,6 @@ cpack_add_component(SUBGAME_MINETEST_GAME
GROUP "Games"
)
-cpack_add_component(SUBGAME_MINIMAL
- DISPLAY_NAME "Development Test"
- DESCRIPTION "A basic testing environment used for engine development and sometimes for testing mods."
- DISABLED #DISABLED does not mean it is disabled, and is just not selected by default.
- GROUP "Games"
-)
-
cpack_add_component_group(Subgames
DESCRIPTION "Games for the Minetest engine."
)