move labormanager into a subdirectory

develop
Kelly Kinkade 2017-07-28 02:28:16 -05:00
parent fd19935fe9
commit a7d21fd627
6 changed files with 35 additions and 1 deletions

@ -128,7 +128,7 @@ if (BUILD_SUPPORTED)
DFHACK_PLUGIN(infiniteSky infiniteSky.cpp)
DFHACK_PLUGIN(isoworldremote isoworldremote.cpp PROTOBUFS isoworldremote)
DFHACK_PLUGIN(jobutils jobutils.cpp)
DFHACK_PLUGIN(labormanager labormanager.cpp labormanager.h labormanager_joblabormapper.cpp labormanager_joblabormapper.h)
add_subdirectory(labormanager)
DFHACK_PLUGIN(lair lair.cpp)
DFHACK_PLUGIN(liquids liquids.cpp Brushes.h LINK_LIBRARIES lua)
DFHACK_PLUGIN(luasocket luasocket.cpp LINK_LIBRARIES clsocket lua dfhack-tinythread)

@ -0,0 +1,34 @@
PROJECT (labormanager)
# A list of source files
SET(PROJECT_SRCS
labormanager.cpp
labormanager_joblabormapper.cpp
)
# A list of headers
SET(PROJECT_HDRS
labormanager.h
labormanager_joblabormapper.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})
#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 linux libs here
${PROJECT_LIBS}
$(NOINHERIT)
)
ENDIF(UNIX)
# this makes sure all the stuff is put in proper places and linked to dfhack
DFHACK_PLUGIN(labormanager ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS})