X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=CMakeLists.txt;h=fa840e5e192bb710e9daec7af3ee8e79a48107c8;hp=55ee124f2d4357938270551be374b0f99032956a;hb=2093131da01fe2e85fe3c841a882b195456baf20;hpb=77b31c853930291e9b20f0235acc41a6369fd8de diff --git a/CMakeLists.txt b/CMakeLists.txt index 55ee124f..fa840e5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,20 +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(daemon) -subproject(darkplaces) -subproject(data/xonotic-data.pk3dir) -subproject(gmqcc) -subproject(netradiant) +subproject(PKI d0_blind_id) +subproject(DAEMON daemon-glue) +subproject(DP darkplaces) +subproject(QCC gmqcc) +subproject(RADIANT netradiant) +subproject(DATA data/xonotic-data.pk3dir) if (DOWNLOAD_MAPS) add_custom_target(update-maps ALL