X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=tools%2FCMakeLists.txt;h=6e30389c35107adcb53c9e16d403b8fc51868aa2;hb=c5ecfe71942b6c273e1ad92390faa710044f547e;hp=94cbbe5bd19c60071fc0b6c6187c3bcf5168e4b8;hpb=3ecc3113aeea149ab79b3701dd87e52e5689458a;p=xonotic%2Fnetradiant.git diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 94cbbe5b..6e30389c 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,13 +1,10 @@ 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) + +add_subdirectory(unvanquished)