|
|
@ -17,18 +17,26 @@ SET(PROJECT_HDRS
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#proto files to include.
|
|
|
|
#proto files to include.
|
|
|
|
SET(PROJECT_PROTO
|
|
|
|
SET(PROJECT_PROTO
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../proto/RemoteFortressReader.pb.cc
|
|
|
|
RemoteFortressReader
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../proto/AdventureControl.pb.cc
|
|
|
|
AdventureControl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../proto/ItemdefInstrument.pb.cc
|
|
|
|
ItemdefInstrument
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../proto/DwarfControl.pb.cc
|
|
|
|
DwarfControl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../proto/ui_sidebar_mode.pb.cc
|
|
|
|
ui_sidebar_mode
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE)
|
|
|
|
SET(PLUGIN_PROTOS)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES( ${PROJECT_PROTO} PROPERTIES GENERATED TRUE)
|
|
|
|
FOREACH(pbuf ${PROJECT_PROTO})
|
|
|
|
|
|
|
|
LIST(APPEND PLUGIN_PROTOS ${CMAKE_CURRENT_SOURCE_DIR}/../proto/${pbuf}.proto)
|
|
|
|
|
|
|
|
ENDFOREACH()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
STRING(REPLACE ".proto" ".pb.cc" PLUGIN_PROTO_SRCS "${PLUGIN_PROTOS}")
|
|
|
|
|
|
|
|
STRING(REPLACE ".proto" ".pb.h" PLUGIN_PROTO_HDRS "${PLUGIN_PROTOS}")
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(${PLUGIN_PROTO_SRCS} ${PLUGIN_PROTO_HDRS} PROPERTIES GENERATED TRUE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} ${PLUGIN_PROTO_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};${PROJECT_PROTO})
|
|
|
|
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS} ${PLUGIN_PROTOS} ${PLUGIN_PROTO_SRCS} ${PLUGIN_PROTO_HDRS})
|
|
|
|
|
|
|
|
|
|
|
|
IF(UNIX AND NOT APPLE)
|
|
|
|
IF(UNIX AND NOT APPLE)
|
|
|
|
SET(PROJECT_LIBS ${PROJECT_LIBS} SDL)
|
|
|
|
SET(PROJECT_LIBS ${PROJECT_LIBS} SDL)
|
|
|
|