X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=tools%2FCMakeLists.txt;h=6e30389c35107adcb53c9e16d403b8fc51868aa2;hp=ad32a079e7a66bbd3aa0f74058771393c3e50553;hb=HEAD;hpb=8e101344b9dcd19bd091b3bb75bce0ef717386c0 diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index ad32a079..b8f85654 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,13 +1,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}") -macro(radiant_tool name) - add_executable(${name} ${ARGN}) - if (NOT (CMAKE_EXECUTABLE_SUFFIX STREQUAL ".${RADIANT_EXECUTABLE}")) - add_custom_command(TARGET ${name} POST_BUILD - COMMAND ln -f -s "$" "${PROJECT_BINARY_DIR}/${name}.${RADIANT_EXECUTABLE}" - VERBATIM - ) - endif () -endmacro() - +add_subdirectory(quake2) +add_subdirectory(heretic2) add_subdirectory(quake3) + +add_custom_target(tools) +add_dependencies(tools quake2 heretic2 quake3)