Merge branch 'illwieckz/externalnames' into 'master'
[xonotic/netradiant.git] / contrib / CMakeLists.txt
1 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/plugins")
2
3 add_custom_target(plugins)
4 macro(radiant_plugin name)
5     message(STATUS "Found Plugin ${name}")
6     add_library(${name} MODULE ${ARGN})
7     add_dependencies(plugins ${name})
8     copy_dlls(${name})
9     install(
10             TARGETS ${name}
11             LIBRARY DESTINATION ${RADIANT_ADDONS_DIR}/plugins
12     )
13 endmacro()
14
15 add_subdirectory(bobtoolz)
16 add_subdirectory(brushexport)
17 add_subdirectory(prtview)
18 add_subdirectory(shaderplug)
19 add_subdirectory(sunplug)
20 add_subdirectory(ufoaiplug)