mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
18 lines
568 B
CMake
18 lines
568 B
CMake
set(DNAVIGATION_SOURCES "dNavMesh.cpp")
|
|
|
|
add_subdirectory(dTerrain)
|
|
|
|
foreach(file ${DNAVIGATIONS_DTERRAIN_SOURCES})
|
|
set(DNAVIGATION_SOURCES ${DNAVIGATION_SOURCES} "dTerrain/${file}")
|
|
endforeach()
|
|
|
|
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
|
|
)
|
|
target_link_libraries(dNavigation PUBLIC tinyxml2 PRIVATE Detour Recast dCommon)
|