From: TimePath Date: Sun, 27 Aug 2017 00:44:42 +0000 (+1000) Subject: CMake: add qc-all target X-Git-Tag: xonotic-v0.8.5~2505 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3f2953a5c021b5ac0eba26c8af6a91c91ade1dfb;p=xonotic%2Fxonotic-data.pk3dir.git CMake: add qc-all target --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ef6db722..2e5fc791f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") project(xonotic-data ASM) +set(all qc-all) +add_custom_target(${all}) + set(checks qc-checks) add_custom_target(${checks}) @@ -73,14 +76,17 @@ set_source_files_properties( ) add_executable(csprogs qcsrc/client/progs.inc) +add_dependencies(${all} csprogs) add_dependencies(csprogs ${checks}) target_compile_definitions(csprogs PRIVATE -DGAMEQC -DCSQC) add_executable(progs qcsrc/server/progs.inc) +add_dependencies(${all} progs) add_dependencies(progs ${checks}) target_compile_definitions(progs PRIVATE -DGAMEQC -DSVQC) add_executable(menu qcsrc/menu/progs.inc) +add_dependencies(${all} menu) add_dependencies(menu ${checks}) target_compile_definitions(menu PRIVATE -DMENUQC)