|
|
@ -15,27 +15,7 @@ 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)
|
|
|
|
# mash them together (headers are marked as headers and nothing will try to compile them)
|
|
|
|
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
|
|
|
|
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#linux
|
|
|
|
|
|
|
|
IF(UNIX)
|
|
|
|
|
|
|
|
add_definitions(-DLINUX_BUILD)
|
|
|
|
|
|
|
|
SET(PROJECT_LIBS
|
|
|
|
|
|
|
|
# add any extra linux libs here
|
|
|
|
|
|
|
|
lua
|
|
|
|
|
|
|
|
dfhack-tinythread
|
|
|
|
|
|
|
|
${PROJECT_LIBS}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
# windows
|
|
|
|
|
|
|
|
ELSE(UNIX)
|
|
|
|
|
|
|
|
SET(PROJECT_LIBS
|
|
|
|
|
|
|
|
# add any extra windows libs here
|
|
|
|
|
|
|
|
lua
|
|
|
|
|
|
|
|
dfhack-tinythread
|
|
|
|
|
|
|
|
${PROJECT_LIBS}
|
|
|
|
|
|
|
|
$(NOINHERIT)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
# this makes sure all the stuff is put in proper places and linked to dfhack
|
|
|
|
# this makes sure all the stuff is put in proper places and linked to dfhack
|
|
|
|
DFHACK_PLUGIN(rendermax ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS})
|
|
|
|
DFHACK_PLUGIN(rendermax ${PROJECT_SRCS} LINK_LIBRARIES lua dfhack-tinythread)
|
|
|
|
install(FILES rendermax.lua
|
|
|
|
install(FILES rendermax.lua
|
|
|
|
DESTINATION ${DFHACK_DATA_DESTINATION}/raw)
|
|
|
|
DESTINATION ${DFHACK_DATA_DESTINATION}/raw)
|
|
|
|