2022-07-16 23:24:16 +00:00
|
|
|
set(DGAME_SOURCES "Character.cpp"
|
|
|
|
"Entity.cpp"
|
|
|
|
"EntityManager.cpp"
|
|
|
|
"LeaderboardManager.cpp"
|
|
|
|
"Player.cpp"
|
2024-01-12 12:33:36 +00:00
|
|
|
"PlayerManager.cpp"
|
2022-07-16 23:24:16 +00:00
|
|
|
"TeamManager.cpp"
|
|
|
|
"TradingManager.cpp"
|
|
|
|
"User.cpp"
|
|
|
|
"UserManager.cpp")
|
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
include_directories(
|
|
|
|
${PROJECT_SOURCE_DIR}/dScripts
|
|
|
|
${PROJECT_SOURCE_DIR}/dGame
|
|
|
|
)
|
2022-07-16 23:24:16 +00:00
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
add_library(dGameBase ${DGAME_SOURCES})
|
|
|
|
target_precompile_headers(dGameBase PRIVATE ${HEADERS_DGAME})
|
|
|
|
target_link_libraries(dGameBase
|
|
|
|
PUBLIC dDatabase dPhysics
|
|
|
|
INTERFACE dComponents dEntity)
|
2022-07-16 23:24:16 +00:00
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
add_subdirectory(dBehaviors)
|
2022-07-16 23:24:16 +00:00
|
|
|
add_subdirectory(dComponents)
|
|
|
|
add_subdirectory(dEntity)
|
|
|
|
add_subdirectory(dGameMessages)
|
|
|
|
add_subdirectory(dInventory)
|
|
|
|
add_subdirectory(dMission)
|
2022-10-31 22:32:07 +00:00
|
|
|
add_subdirectory(dPropertyBehaviors)
|
2022-07-16 23:24:16 +00:00
|
|
|
add_subdirectory(dUtilities)
|
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
add_library(dGame INTERFACE)
|
|
|
|
target_link_libraries(dGame INTERFACE
|
|
|
|
dGameBase dBehaviors dComponents dEntity dGameMessages dInventory dMission dPropertyBehaviors dUtilities dScripts
|
|
|
|
)
|