Merge branch 'dpkdir' into 'master'
[xonotic/netradiant.git] / tools / CMakeLists.txt
1 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
2
3 macro(radiant_tool name)
4     add_executable(${name} ${ARGN})
5     if (NOT (CMAKE_EXECUTABLE_SUFFIX STREQUAL RADIANT_EXECUTABLE))
6         add_custom_command(TARGET ${name} POST_BUILD
7                 COMMAND ln -f -s "$<TARGET_FILE_NAME:${name}>" "${PROJECT_BINARY_DIR}/${name}.${RADIANT_EXECUTABLE}"
8                 VERBATIM
9                 )
10     endif ()
11 endmacro()
12
13 add_subdirectory(quake3)