2019-07-16 20:19:11 -06:00
|
|
|
project(rendermax)
|
2013-06-21 18:45:42 -06:00
|
|
|
|
2013-06-21 13:47:23 -06:00
|
|
|
# A list of source files
|
2019-07-16 20:19:11 -06:00
|
|
|
set(PROJECT_SRCS
|
2013-06-21 13:47:23 -06:00
|
|
|
rendermax.cpp
|
2013-06-23 10:25:42 -06:00
|
|
|
renderer_light.cpp
|
2013-06-21 13:47:23 -06:00
|
|
|
)
|
|
|
|
# A list of headers
|
2019-07-16 20:19:11 -06:00
|
|
|
set(PROJECT_HDRS
|
2013-06-21 13:47:23 -06:00
|
|
|
renderer_opengl.hpp
|
2013-06-23 10:25:42 -06:00
|
|
|
renderer_light.hpp
|
2013-06-21 13:47:23 -06:00
|
|
|
)
|
2019-07-16 20:19:11 -06:00
|
|
|
set_source_files_properties(${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE)
|
2013-06-21 13:47:23 -06:00
|
|
|
|
|
|
|
# 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})
|
2013-06-21 18:45:42 -06:00
|
|
|
|
2013-06-21 13:47:23 -06:00
|
|
|
# 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)
|