2022-10-31 22:32:07 +00:00
|
|
|
set(DGAME_DPROPERTYBEHAVIORS_SOURCES
|
2024-01-03 13:34:38 +00:00
|
|
|
"PropertyBehavior.cpp"
|
|
|
|
"State.cpp"
|
|
|
|
"Strip.cpp"
|
2023-02-14 02:55:44 +00:00
|
|
|
"BlockDefinition.cpp"
|
2022-10-31 22:32:07 +00:00
|
|
|
"ControlBehaviors.cpp"
|
|
|
|
)
|
2023-02-14 02:55:44 +00:00
|
|
|
|
|
|
|
add_subdirectory(ControlBehaviorMessages)
|
|
|
|
|
|
|
|
foreach(file ${DGAME_DPROPERTYBEHAVIORS_CONTROLBEHAVIORMESSAGES})
|
|
|
|
set(DGAME_DPROPERTYBEHAVIORS_SOURCES ${DGAME_DPROPERTYBEHAVIORS_SOURCES} "ControlBehaviorMessages/${file}")
|
|
|
|
endforeach()
|
|
|
|
|
2024-01-04 01:58:51 +00:00
|
|
|
add_library(dPropertyBehaviors OBJECT ${DGAME_DPROPERTYBEHAVIORS_SOURCES})
|
2024-01-03 21:41:05 +00:00
|
|
|
target_link_libraries(dPropertyBehaviors PRIVATE dDatabaseCDClient)
|
2024-01-03 20:13:47 +00:00
|
|
|
target_include_directories(dPropertyBehaviors PUBLIC "." "ControlBehaviorMessages"
|
|
|
|
PRIVATE
|
2024-01-03 22:08:32 +00:00
|
|
|
"${PROJECT_SOURCE_DIR}/dCommon/dClient" # ControlBehaviors.cpp uses AssetManager
|
2024-01-03 20:13:47 +00:00
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dGameMessages" # GameMessages.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dComponents" # ModelComponent.h
|
|
|
|
)
|
2024-01-04 00:41:46 +00:00
|
|
|
target_precompile_headers(dPropertyBehaviors REUSE_FROM dGameBase)
|
2024-01-04 01:58:51 +00:00
|
|
|
|
|
|
|
target_link_libraries(dPropertyBehaviors INTERFACE dComponents)
|