dfhack/plugins/rendermax/CMakeLists.txt

22 lines
634 B
CMake

2019-07-16 20:19:11 -06:00
project(rendermax)
# A list of source files
2019-07-16 20:19:11 -06:00
set(PROJECT_SRCS
rendermax.cpp
renderer_light.cpp
)
# A list of headers
2019-07-16 20:19:11 -06:00
set(PROJECT_HDRS
renderer_opengl.hpp
renderer_light.hpp
)
2019-07-16 20:19:11 -06:00
set_source_files_properties(${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE)
# mash them together (headers are marked as headers and nothing will try to compile them)
2019-07-16 20:19:11 -06:00
list(APPEND PROJECT_SRCS ${PROJECT_HDRS})
# this makes sure all the stuff is put in proper places and linked to dfhack
2019-07-16 20:19:11 -06:00
dfhack_plugin(rendermax ${PROJECT_SRCS} LINK_LIBRARIES lua dfhack-tinythread)
2013-06-25 05:14:44 -06:00
install(FILES rendermax.lua
2019-07-16 20:19:11 -06:00
DESTINATION ${DFHACK_DATA_DESTINATION}/raw)