set(DGAME_SOURCES "Character.cpp" "Entity.cpp" "EntityManager.cpp" "LeaderboardManager.cpp" "PlayerManager.cpp" "TeamManager.cpp" "TradingManager.cpp" "User.cpp" "UserManager.cpp") include_directories( ${PROJECT_SOURCE_DIR}/dScripts ${PROJECT_SOURCE_DIR}/dGame ) add_library(dGameBase OBJECT ${DGAME_SOURCES}) target_precompile_headers(dGameBase PRIVATE ${HEADERS_DGAME}) target_include_directories(dGameBase PUBLIC "." "dEntity" PRIVATE "dComponents" "dGameMessages" "dBehaviors" "dMission" "dUtilities" "dInventory" $ "${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" ) add_subdirectory(dBehaviors) add_subdirectory(dComponents) add_subdirectory(dEntity) add_subdirectory(dGameMessages) add_subdirectory(dInventory) add_subdirectory(dMission) add_subdirectory(dPropertyBehaviors) add_subdirectory(dUtilities) add_library(dGame STATIC $ $ $ $ $ $ $ $ $ ) target_link_libraries(dGame INTERFACE dNet) target_include_directories(dGame INTERFACE $ $ $ $ $ $ $ $ $ )