dfhack/plugins/remotefortressreader/CMakeLists.txt

44 lines
1.1 KiB
CMake

PROJECT (remotefortressreader)
# A list of source files
SET(PROJECT_SRCS
remotefortressreader.cpp
adventure_control.cpp
2017-03-25 10:53:40 -06:00
building_reader.cpp
2018-01-17 06:40:19 -07:00
item_reader.cpp
)
# A list of headers
SET(PROJECT_HDRS
adventure_control.h
2017-03-25 10:53:40 -06:00
building_reader.h
2018-01-17 06:40:19 -07:00
item_reader.h
df_version_int.h
)
#proto files to include.
SET(PROJECT_PROTO
2016-11-08 02:43:43 -07:00
../../proto/RemoteFortressReader
../../proto/AdventureControl
)
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})
#linux
IF(UNIX)
add_definitions(-DLINUX_BUILD)
SET(PROJECT_LIBS
# add any extra linux libs here
${PROJECT_LIBS}
)
# windows
ELSE(UNIX)
SET(PROJECT_LIBS
# add any extra windows libs here
${PROJECT_LIBS}
$(NOINHERIT)
)
ENDIF(UNIX)
# this makes sure all the stuff is put in proper places and linked to dfhack
DFHACK_PLUGIN(RemoteFortressReader ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS} PROTOBUFS ${PROJECT_PROTO} )