2022-08-02 05:30:19 +00:00
|
|
|
set(DNAVIGATION_SOURCES "dNavMesh.cpp")
|
|
|
|
|
2022-08-04 00:59:47 +00:00
|
|
|
add_subdirectory(dTerrain)
|
|
|
|
|
|
|
|
foreach(file ${DNAVIGATIONS_DTERRAIN_SOURCES})
|
|
|
|
set(DNAVIGATION_SOURCES ${DNAVIGATION_SOURCES} "dTerrain/${file}")
|
|
|
|
endforeach()
|
|
|
|
|
2024-03-06 02:13:24 +00:00
|
|
|
add_library(dNavigation OBJECT ${DNAVIGATION_SOURCES})
|
|
|
|
target_include_directories(dNavigation PUBLIC "."
|
|
|
|
PRIVATE
|
|
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dEntity"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dNavigation/dTerrain" # via dNavMesh.cpp
|
|
|
|
)
|
2024-11-21 08:18:16 +00:00
|
|
|
target_link_libraries(dNavigation PUBLIC tinyxml2 PRIVATE Detour Recast dCommon)
|