mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
27 lines
1022 B
CMake
27 lines
1022 B
CMake
set(DGAME_DPROPERTYBEHAVIORS_SOURCES
|
|
"PropertyBehavior.cpp"
|
|
"State.cpp"
|
|
"Strip.cpp"
|
|
"BlockDefinition.cpp"
|
|
"ControlBehaviors.cpp"
|
|
)
|
|
|
|
add_subdirectory(ControlBehaviorMessages)
|
|
|
|
foreach(file ${DGAME_DPROPERTYBEHAVIORS_CONTROLBEHAVIORMESSAGES})
|
|
set(DGAME_DPROPERTYBEHAVIORS_SOURCES ${DGAME_DPROPERTYBEHAVIORS_SOURCES} "ControlBehaviorMessages/${file}")
|
|
endforeach()
|
|
|
|
add_library(dPropertyBehaviors OBJECT ${DGAME_DPROPERTYBEHAVIORS_SOURCES})
|
|
target_link_libraries(dPropertyBehaviors PUBLIC tinyxml2 PRIVATE dDatabaseCDClient)
|
|
target_include_directories(dPropertyBehaviors PUBLIC "." "ControlBehaviorMessages"
|
|
PRIVATE
|
|
"${PROJECT_SOURCE_DIR}/dCommon/dClient" # ControlBehaviors.cpp uses AssetManager
|
|
"${PROJECT_SOURCE_DIR}/dGame/dUtilities" # ObjectIdManager.h
|
|
"${PROJECT_SOURCE_DIR}/dGame/dGameMessages" # GameMessages.h
|
|
"${PROJECT_SOURCE_DIR}/dGame/dComponents" # ModelComponent.h
|
|
)
|
|
target_precompile_headers(dPropertyBehaviors REUSE_FROM dGameBase)
|
|
|
|
target_link_libraries(dPropertyBehaviors INTERFACE dComponents)
|