xonotic/CMakeLists.txt
2016-04-14 14:17:39 +10:00

28 lines
719 B
CMake

cmake_minimum_required(VERSION 2.8.11 FATAL_ERROR)
project(xonotic)
option(DOWNLOAD_MAPS "Download new maps from the build server" ON)
option(BUILD_RELEASE "Package a release" OFF)
macro(subproject name)
if (EXISTS "${PROJECT_SOURCE_DIR}/${name}/CMakeLists.txt")
add_subdirectory(${name} ${ARGN})
endif ()
endmacro()
subproject(darkplaces)
subproject(data/xonotic-data.pk3dir)
subproject(gmqcc)
subproject(netradiant)
if (DOWNLOAD_MAPS)
add_custom_target(update-maps ALL
COMMAND ${PROJECT_SOURCE_DIR}/misc/tools/xonotic-map-compiler-autobuild download
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
endif ()
if (BUILD_RELEASE)
include(release.cmake)
endif ()