]> git.xonotic.org Git - xonotic/netradiant.git/blob - plugins/CMakeLists.txt
Merge commit '0261afc6df181092b7d57751fec84e21d3ac593c' into garux-merge
[xonotic/netradiant.git] / plugins / CMakeLists.txt
1 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/modules")
2
3 add_custom_target(modules)
4 macro(radiant_plugin name)
5     message(STATUS "Found Module ${name}")
6     add_library(${name} MODULE ${ARGN})
7     add_dependencies(modules ${name})
8     copy_dlls(${name})
9     install(
10             TARGETS ${name}
11             LIBRARY DESTINATION modules
12     )
13 endmacro()
14
15 add_subdirectory(archivepak)
16 add_subdirectory(archivewad)
17 add_subdirectory(archivezip)
18 add_subdirectory(entity)
19 add_subdirectory(image)
20
21 if(BUILD_CRUNCH)
22         add_subdirectory(imagecrn)
23 endif()
24
25 add_subdirectory(imagehl)
26 add_subdirectory(imagepng)
27 add_subdirectory(imageq2)
28 add_subdirectory(imagewebp)
29 add_subdirectory(iqmmodel)
30 add_subdirectory(mapq3)
31 add_subdirectory(mapxml)
32 add_subdirectory(md3model)
33 add_subdirectory(model)
34 add_subdirectory(shaders)
35 add_subdirectory(vfspk3)