dfhack/plugins/skeleton/CMakeLists.txt

37 lines
991 B
CMake

2011-10-06 19:53:58 -06:00
PROJECT (skeleton)
# A list of source files
SET(PROJECT_SRCS
skeleton.cpp
)
# A list of headers
SET(PROJECT_HDRS
skeleton.h
)
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)
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
# option to use a thread for no particular reason
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}
)
ELSE()
SET(PROJECT_LIBS
# add any extra linux libraries here
${PROJECT_LIBS}
)
ENDIF()
ELSE()
2011-10-06 19:53:58 -06:00
SET(PROJECT_LIBS
# add any extra windows libraries here
2011-10-06 19:53:58 -06:00
${PROJECT_LIBS}
)
ENDIF()
2011-10-06 19:53:58 -06:00
# this makes sure all the stuff is put in proper places and linked to dfhack
DFHACK_PLUGIN(skeleton ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS})