collect autolabor plugins into one directory
these plugins all share code, moving them into a common directory will make refactoring the code shared between them more straightforwarddevelop
parent
baf58fdf25
commit
aa78c626f9
@ -0,0 +1,16 @@
|
|||||||
|
project(autolahor)
|
||||||
|
# A list of source files
|
||||||
|
set(COMMON_SRCS
|
||||||
|
)
|
||||||
|
# A list of headers
|
||||||
|
set(COMMON_HDRS
|
||||||
|
)
|
||||||
|
set_source_files_properties(${COMMON_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||||
|
|
||||||
|
# mash them together (headers are marked as headers and nothing will try to compile them)
|
||||||
|
list(APPEND COMMON_SRCS ${COMMON_HDRS})
|
||||||
|
|
||||||
|
dfhack_plugin(labormanager labormanager.cpp joblabormapper.cpp ${COMMON_SRCS})
|
||||||
|
|
||||||
|
dfhack_plugin(autohauler autohauler.cpp ${COMMON_SRCS})
|
||||||
|
dfhack_plugin(autolabor autolabor.cpp ${COMMON_SRCS})
|
@ -1,17 +0,0 @@
|
|||||||
project(labormanager)
|
|
||||||
# A list of source files
|
|
||||||
set(PROJECT_SRCS
|
|
||||||
labormanager.cpp
|
|
||||||
joblabormapper.cpp
|
|
||||||
)
|
|
||||||
# A list of headers
|
|
||||||
set(PROJECT_HDRS
|
|
||||||
labormanager.h
|
|
||||||
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})
|
|
||||||
|
|
||||||
dfhack_plugin(labormanager ${PROJECT_SRCS})
|
|
Loading…
Reference in New Issue