2022-07-16 23:24:16 +00:00
|
|
|
set(DGAME_SOURCES "Character.cpp"
|
|
|
|
"Entity.cpp"
|
|
|
|
"EntityManager.cpp"
|
|
|
|
"LeaderboardManager.cpp"
|
2024-01-13 09:40:56 +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-03-06 02:13:24 +00:00
|
|
|
add_library(dGameBase OBJECT ${DGAME_SOURCES})
|
2024-01-04 00:41:46 +00:00
|
|
|
target_precompile_headers(dGameBase PRIVATE ${HEADERS_DGAME})
|
2024-03-06 02:13:24 +00:00
|
|
|
target_include_directories(dGameBase PUBLIC "." "dEntity"
|
|
|
|
PRIVATE "dComponents" "dGameMessages" "dBehaviors" "dMission" "dUtilities" "dInventory"
|
|
|
|
$<TARGET_PROPERTY:dPropertyBehaviors,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
"${PROJECT_SOURCE_DIR}/dCommon"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dCommon/dEnums"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dCommon/dClient"
|
|
|
|
# dDatabase
|
|
|
|
"${PROJECT_SOURCE_DIR}/dDatabase/CDClientDatabase"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dDatabase/CDClientDatabase/CDClientTables"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dDatabase/GameDatabase"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dDatabase/GameDatabase/ITables"
|
|
|
|
# dPhysics
|
|
|
|
"${PROJECT_SOURCE_DIR}/thirdparty/recastnavigation/Recast/Include"
|
|
|
|
"${PROJECT_SOURCE_DIR}/thirdparty/recastnavigation/Detour/Include"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager"
|
|
|
|
)
|
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-03-06 02:13:24 +00:00
|
|
|
add_library(dGame STATIC
|
|
|
|
$<TARGET_OBJECTS:dGameBase>
|
|
|
|
$<TARGET_OBJECTS:dBehaviors>
|
|
|
|
$<TARGET_OBJECTS:dComponents>
|
|
|
|
$<TARGET_OBJECTS:dEntity>
|
|
|
|
$<TARGET_OBJECTS:dGameMessages>
|
|
|
|
$<TARGET_OBJECTS:dInventory>
|
|
|
|
$<TARGET_OBJECTS:dMission>
|
|
|
|
$<TARGET_OBJECTS:dPropertyBehaviors>
|
|
|
|
$<TARGET_OBJECTS:dUtilities>
|
|
|
|
)
|
|
|
|
target_link_libraries(dGame INTERFACE dNet)
|
|
|
|
target_include_directories(dGame INTERFACE
|
|
|
|
$<TARGET_PROPERTY:dGameBase,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dBehaviors,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dComponents,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dEntity,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dGameMessages,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dInventory,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dMission,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dPropertyBehaviors,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dUtilities,INTERFACE_INCLUDE_DIRECTORIES>
|
2024-01-04 00:41:46 +00:00
|
|
|
)
|