dfhack/plugins/skeleton/CMakeLists.txt

37 lines
989 B
CMake

2019-07-16 20:19:11 -06:00
project(skeleton)
2011-10-06 19:53:58 -06:00
# A list of source files
2019-07-16 20:19:11 -06:00
set(PROJECT_SRCS
2011-10-06 19:53:58 -06:00
skeleton.cpp
)
# A list of headers
2019-07-16 20:19:11 -06:00
set(PROJECT_HDRS
2011-10-06 19:53:58 -06:00
skeleton.h
)
2019-07-16 20:19:11 -06:00
set_source_files_properties(${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE)
2011-10-06 19:53:58 -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})
2011-10-06 19:53:58 -06:00
# option to use a thread for no particular reason
2019-07-16 20:19:11 -06:00
option(SKELETON_THREAD "Use threads in the skeleton plugin." ON)
if(UNIX)
if(APPLE)
set(PROJECT_LIBS
# add any extra mac libraries here
${PROJECT_LIBS}
)
2019-07-16 20:19:11 -06:00
else()
set(PROJECT_LIBS
# add any extra linux libraries here
${PROJECT_LIBS}
)
2019-07-16 20:19:11 -06:00
endif()
else()
set(PROJECT_LIBS
# add any extra windows libraries here
2011-10-06 19:53:58 -06:00
${PROJECT_LIBS}
)
2019-07-16 20:19:11 -06:00
endif()
2011-10-06 19:53:58 -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(skeleton ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS})