X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=CMakeLists.txt;h=23080598b53504e61e954830ad56295dc97b3c7f;hp=734d5934f7e5af3a8fe333107881577aa78d95b3;hb=1e434bee7af23e6dfd2130a8eadd131e5da3d643;hpb=8d73b1dcef03cb43c24244c62a72c44e415be067 diff --git a/CMakeLists.txt b/CMakeLists.txt index 734d5934..23080598 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,19 +1,24 @@ -cmake_minimum_required(VERSION 2.8.11 FATAL_ERROR) +cmake_minimum_required(VERSION 2.8.12 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) +function(subproject id name) + if ($ENV{XON_NO_${id}}) + return() + endif () if (EXISTS "${PROJECT_SOURCE_DIR}/${name}/CMakeLists.txt") add_subdirectory(${name} ${ARGN}) endif () -endmacro() +endfunction() -subproject(darkplaces) -subproject(data/xonotic-data.pk3dir) -subproject(gmqcc) -subproject(netradiant) +subproject(PKI d0_blind_id) +subproject(DAEMON daemon) +subproject(DP darkplaces) +subproject(QCC gmqcc) +subproject(RADIANT netradiant) +subproject(DATA data/xonotic-data.pk3dir) if (DOWNLOAD_MAPS) add_custom_target(update-maps ALL