From 9fff8bf6e6aa92efb7ee5bbe4809bca76d9eacf0 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 23 Jul 2019 04:21:22 +0200 Subject: [PATCH] add a "binaries" target, fix #135, <3 @zturtleman add a "binaries" target to be able to rebuild everything without redownloading gamepacks --- CMakeLists.txt | 4 ++++ README.md | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b93ced26..35ca21d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -176,6 +176,8 @@ if (BUILD_RADIANT) endif () if (BUILD_BINARIES) + add_custom_target(binaries ALL) + if(APPLE OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") link_directories( /usr/local/lib @@ -267,6 +269,8 @@ if (BUILD_BINARIES) endif () macro (radiant_tool name) + add_dependencies(binaries ${name}) + if (BUNDLE_LIBRARIES AND WIN32) add_executable(${name} ${ARGN} ${PROJECT_SOURCE_DIR}/include/lib.rc) else () diff --git a/README.md b/README.md index d977c242..4c0509a9 100644 --- a/README.md +++ b/README.md @@ -125,15 +125,16 @@ options: targets: -* `netradiant` Compiles the netradiant core binary -* `modules` Compiles all modules (each module has its own target as well) -* `plugins` Compiles all plugins (each plugin has its own target as well) -* `tools` Compiles all tools (each tool has its own target as well) - - `quake2` Compiles all the Quake2 tools: `q2map`, `qdata3` - - `heretic2` Compiles all the Heretic2 tools: `q2map`, `h2data` - - `quake3` Compiles all the Quake3 tools: - * `q3map2` Compiles the quake3 map compiler - * `q3data` Compiles the q3data tool +* `binaries` Compiles all binaries + - `netradiant` Compiles the netradiant editor + - `modules` Compiles all modules (each module has its own target as well) + - `plugins` Compiles all plugins (each plugin has its own target as well) + - `tools` Compiles all tools (each tool has its own target as well) + * `quake2` Compiles all the Quake2 tools: `q2map`, `qdata3` + * `heretic2` Compiles all the Heretic2 tools: `q2map`, `h2data` + * `quake3` Compiles all the Quake3 tools: + - `q3map2` Compiles the quake3 map compiler + - `q3data` Compiles the q3data tool Type `make help` to get an exhaustive list of targets. -- 2.39.2