dfhack/plugins/remotefortressreader/CMakeLists.txt

33 lines
752 B
CMake

2019-07-16 20:19:11 -06:00
project(remotefortressreader)
# A list of source files
2019-07-16 20:19:11 -06:00
set(PROJECT_SRCS
remotefortressreader.cpp
adventure_control.cpp
2017-03-25 10:53:40 -06:00
building_reader.cpp
2018-12-25 23:05:17 -07:00
dwarf_control.cpp
2018-01-17 06:40:19 -07:00
item_reader.cpp
)
# A list of headers
2019-07-16 20:19:11 -06:00
set(PROJECT_HDRS
adventure_control.h
2017-03-25 10:53:40 -06:00
building_reader.h
2018-12-25 23:05:17 -07:00
dwarf_control.h
2018-01-17 06:40:19 -07:00
item_reader.h
df_version_int.h
)
2019-07-16 20:19:11 -06:00
# proto files to include.
set(PROJECT_PROTO
RemoteFortressReader
AdventureControl
ItemdefInstrument
DwarfControl
ui_sidebar_mode
)
2019-07-16 20:19:11 -06:00
if(UNIX AND NOT APPLE)
set(PROJECT_LIBS ${PROJECT_LIBS} SDL)
endif()
# 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})