mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Update recastnavigation to 6624e7aef5e15df11cb2f5673574df8e4c96af6a
This commit is contained in:
parent
86dc6f7512
commit
9363bc2d48
8 changed files with 62 additions and 49 deletions
2
extern/recastnavigation/.id
vendored
2
extern/recastnavigation/.id
vendored
|
@ -1 +1 @@
|
|||
57610fa6ef31b39020231906f8c5d40eaa8294ae
|
||||
6624e7aef5e15df11cb2f5673574df8e4c96af6a
|
||||
|
|
6
extern/recastnavigation/CMakeLists.txt
vendored
6
extern/recastnavigation/CMakeLists.txt
vendored
|
@ -13,6 +13,12 @@ SET(VERSION 1.0.0)
|
|||
|
||||
option(RECASTNAVIGATION_STATIC "Build static libraries" ON)
|
||||
|
||||
if(MSVC AND BUILD_SHARED_LIBS)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_subdirectory(DebugUtils)
|
||||
add_subdirectory(Detour)
|
||||
add_subdirectory(DetourCrowd)
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
file(GLOB SOURCES Source/*.cpp)
|
||||
|
||||
if (RECASTNAVIGATION_STATIC)
|
||||
add_library(DebugUtils STATIC ${SOURCES})
|
||||
else()
|
||||
add_library(DebugUtils SHARED ${SOURCES})
|
||||
endif()
|
||||
add_library(DebugUtils ${SOURCES})
|
||||
|
||||
add_library(RecastNavigation::DebugUtils ALIAS DebugUtils)
|
||||
set_target_properties(DebugUtils PROPERTIES DEBUG_POSTFIX -d)
|
||||
|
||||
set(DebugUtils_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
|
||||
|
||||
|
@ -23,13 +19,18 @@ target_link_libraries(DebugUtils
|
|||
set_target_properties(DebugUtils PROPERTIES
|
||||
SOVERSION ${SOVERSION}
|
||||
VERSION ${VERSION}
|
||||
COMPILE_PDB_OUTPUT_DIRECTORY .
|
||||
COMPILE_PDB_NAME "DebugUtils-d"
|
||||
)
|
||||
|
||||
install(TARGETS DebugUtils
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT library
|
||||
)
|
||||
|
||||
file(GLOB INCLUDES Include/*.h)
|
||||
install(FILES ${INCLUDES} DESTINATION include)
|
||||
install(FILES ${INCLUDES} DESTINATION
|
||||
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
||||
install(FILES "$<TARGET_FILE_DIR:DebugUtils>/DebugUtils-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
||||
|
|
19
extern/recastnavigation/Detour/CMakeLists.txt
vendored
19
extern/recastnavigation/Detour/CMakeLists.txt
vendored
|
@ -1,12 +1,8 @@
|
|||
file(GLOB SOURCES Source/*.cpp)
|
||||
|
||||
if(RECASTNAVIGATION_STATIC)
|
||||
add_library(Detour STATIC ${SOURCES})
|
||||
else()
|
||||
add_library(Detour SHARED ${SOURCES})
|
||||
endif()
|
||||
add_library(Detour ${SOURCES})
|
||||
|
||||
add_library(RecastNavigation::Detour ALIAS Detour)
|
||||
set_target_properties(Detour PROPERTIES DEBUG_POSTFIX -d)
|
||||
|
||||
set(Detour_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
|
||||
|
||||
|
@ -17,13 +13,18 @@ target_include_directories(Detour PUBLIC
|
|||
set_target_properties(Detour PROPERTIES
|
||||
SOVERSION ${SOVERSION}
|
||||
VERSION ${VERSION}
|
||||
COMPILE_PDB_OUTPUT_DIRECTORY .
|
||||
COMPILE_PDB_NAME "Detour-d"
|
||||
)
|
||||
|
||||
install(TARGETS Detour
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT library
|
||||
)
|
||||
|
||||
file(GLOB INCLUDES Include/*.h)
|
||||
install(FILES ${INCLUDES} DESTINATION include)
|
||||
install(FILES ${INCLUDES} DESTINATION
|
||||
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
||||
install(FILES "$<TARGET_FILE_DIR:Detour>/Detour-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
file(GLOB SOURCES Source/*.cpp)
|
||||
|
||||
if (RECASTNAVIGATION_STATIC)
|
||||
add_library(DetourCrowd STATIC ${SOURCES})
|
||||
else ()
|
||||
add_library(DetourCrowd SHARED ${SOURCES})
|
||||
endif ()
|
||||
add_library(DetourCrowd ${SOURCES})
|
||||
|
||||
add_library(RecastNavigation::DetourCrowd ALIAS DetourCrowd)
|
||||
set_target_properties(DetourCrowd PROPERTIES DEBUG_POSTFIX -d)
|
||||
|
||||
set(DetourCrowd_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
|
||||
|
||||
|
@ -21,13 +17,18 @@ target_link_libraries(DetourCrowd
|
|||
set_target_properties(DetourCrowd PROPERTIES
|
||||
SOVERSION ${SOVERSION}
|
||||
VERSION ${VERSION}
|
||||
COMPILE_PDB_OUTPUT_DIRECTORY .
|
||||
COMPILE_PDB_NAME "DetourCrowd-d"
|
||||
)
|
||||
|
||||
install(TARGETS DetourCrowd
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT library
|
||||
)
|
||||
|
||||
file(GLOB INCLUDES Include/*.h)
|
||||
install(FILES ${INCLUDES} DESTINATION include)
|
||||
install(FILES ${INCLUDES} DESTINATION
|
||||
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
||||
install(FILES "$<TARGET_FILE_DIR:DetourCrowd>/DetourCrowd-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
||||
|
|
|
@ -1409,12 +1409,14 @@ void dtCrowd::update(const float dt, dtCrowdAgentDebugInfo* debug)
|
|||
}
|
||||
|
||||
// Update agents using off-mesh connection.
|
||||
for (int i = 0; i < m_maxAgents; ++i)
|
||||
for (int i = 0; i < nagents; ++i)
|
||||
{
|
||||
dtCrowdAgentAnimation* anim = &m_agentAnims[i];
|
||||
dtCrowdAgent* ag = agents[i];
|
||||
const int idx = (int)(ag - m_agents);
|
||||
dtCrowdAgentAnimation* anim = &m_agentAnims[idx];
|
||||
if (!anim->active)
|
||||
continue;
|
||||
dtCrowdAgent* ag = agents[i];
|
||||
|
||||
|
||||
anim->t += dt;
|
||||
if (anim->t > anim->tmax)
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
file(GLOB SOURCES Source/*.cpp)
|
||||
|
||||
if (RECASTNAVIGATION_STATIC)
|
||||
add_library(DetourTileCache STATIC ${SOURCES})
|
||||
else ()
|
||||
add_library(DetourTileCache SHARED ${SOURCES})
|
||||
endif ()
|
||||
add_library(DetourTileCache ${SOURCES})
|
||||
|
||||
add_library(RecastNavigation::DetourTileCache ALIAS DetourTileCache)
|
||||
set_target_properties(DetourTileCache PROPERTIES DEBUG_POSTFIX -d)
|
||||
|
||||
set(DetourTileCache_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
|
||||
|
||||
|
@ -21,14 +17,19 @@ target_link_libraries(DetourTileCache
|
|||
set_target_properties(DetourTileCache PROPERTIES
|
||||
SOVERSION ${SOVERSION}
|
||||
VERSION ${VERSION}
|
||||
COMPILE_PDB_OUTPUT_DIRECTORY .
|
||||
COMPILE_PDB_NAME "DetourTileCache-d"
|
||||
)
|
||||
|
||||
|
||||
install(TARGETS DetourTileCache
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT library
|
||||
)
|
||||
|
||||
file(GLOB INCLUDES Include/*.h)
|
||||
install(FILES ${INCLUDES} DESTINATION include)
|
||||
install(FILES ${INCLUDES} DESTINATION
|
||||
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
||||
install(FILES "$<TARGET_FILE_DIR:DetourTileCache>/DetourTileCache-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
||||
|
|
19
extern/recastnavigation/Recast/CMakeLists.txt
vendored
19
extern/recastnavigation/Recast/CMakeLists.txt
vendored
|
@ -1,12 +1,8 @@
|
|||
file(GLOB SOURCES Source/*.cpp)
|
||||
|
||||
if (RECASTNAVIGATION_STATIC)
|
||||
add_library(Recast STATIC ${SOURCES})
|
||||
else ()
|
||||
add_library(Recast SHARED ${SOURCES})
|
||||
endif ()
|
||||
add_library(Recast ${SOURCES})
|
||||
|
||||
add_library(RecastNavigation::Recast ALIAS Recast)
|
||||
set_target_properties(Recast PROPERTIES DEBUG_POSTFIX -d)
|
||||
|
||||
set(Recast_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
|
||||
|
||||
|
@ -17,13 +13,18 @@ target_include_directories(Recast PUBLIC
|
|||
set_target_properties(Recast PROPERTIES
|
||||
SOVERSION ${SOVERSION}
|
||||
VERSION ${VERSION}
|
||||
COMPILE_PDB_OUTPUT_DIRECTORY .
|
||||
COMPILE_PDB_NAME "Recast-d"
|
||||
)
|
||||
|
||||
install(TARGETS Recast
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT library
|
||||
)
|
||||
|
||||
file(GLOB INCLUDES Include/*.h)
|
||||
install(FILES ${INCLUDES} DESTINATION include)
|
||||
install(FILES ${INCLUDES} DESTINATION
|
||||
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
||||
install(FILES "$<TARGET_FILE_DIR:Recast>/Recast-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
||||
|
|
Loading…
Reference in a new issue