diff options
| -rw-r--r-- | ports/recast/CMakeLists.txt | 57 | ||||
| -rw-r--r-- | ports/recast/CONTROL | 3 | ||||
| -rw-r--r-- | ports/recast/portfile.cmake | 22 |
3 files changed, 82 insertions, 0 deletions
diff --git a/ports/recast/CMakeLists.txt b/ports/recast/CMakeLists.txt new file mode 100644 index 000000000..5b54f6e20 --- /dev/null +++ b/ports/recast/CMakeLists.txt @@ -0,0 +1,57 @@ +cmake_minimum_required(VERSION 3.8)
+project(recast)
+
+include_directories(
+ DebugUtils/Include
+ Detour/Include
+ DetourCrowd/Include
+ DetourTileCache/Include
+ Recast/Include
+)
+
+set(SRC
+ DebugUtils/Source/DebugDraw.cpp
+ DebugUtils/Source/DetourDebugDraw.cpp
+ DebugUtils/Source/RecastDebugDraw.cpp
+ DebugUtils/Source/RecastDump.cpp
+ Detour/Source/DetourAlloc.cpp
+ Detour/Source/DetourCommon.cpp
+ Detour/Source/DetourNavMesh.cpp
+ Detour/Source/DetourNavMeshBuilder.cpp
+ Detour/Source/DetourNavMeshQuery.cpp
+ Detour/Source/DetourNode.cpp
+ DetourCrowd/Source/DetourCrowd.cpp
+ DetourCrowd/Source/DetourLocalBoundary.cpp
+ DetourCrowd/Source/DetourObstacleAvoidance.cpp
+ DetourCrowd/Source/DetourPathCorridor.cpp
+ DetourCrowd/Source/DetourPathQueue.cpp
+ DetourCrowd/Source/DetourProximityGrid.cpp
+ DetourTileCache/Source/DetourTileCache.cpp
+ DetourTileCache/Source/DetourTileCacheBuilder.cpp
+ Recast/Source/Recast.cpp
+ Recast/Source/RecastAlloc.cpp
+ Recast/Source/RecastArea.cpp
+ Recast/Source/RecastContour.cpp
+ Recast/Source/RecastFilter.cpp
+ Recast/Source/RecastLayers.cpp
+ Recast/Source/RecastMesh.cpp
+ Recast/Source/RecastMeshDetail.cpp
+ Recast/Source/RecastRasterization.cpp
+ Recast/Source/RecastRegion.cpp
+)
+
+add_library(recast ${SRC})
+
+install(
+ TARGETS recast
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(DIRECTORY DebugUtils/Include/ DESTINATION include/recast/DebugUtils)
+ install(DIRECTORY Detour/Include/ DESTINATION include/recast/Detour)
+ install(DIRECTORY DetourCrowd/Include/ DESTINATION include/recast/DetourCrowd)
+ install(DIRECTORY DetourTileCache/Include/ DESTINATION include/recast/DetourTileCache)
+ install(DIRECTORY Recast/Include/ DESTINATION include/recast/Recast)
+endif()
diff --git a/ports/recast/CONTROL b/ports/recast/CONTROL new file mode 100644 index 000000000..34bb2b34a --- /dev/null +++ b/ports/recast/CONTROL @@ -0,0 +1,3 @@ +Source: recast +Version: 1.5.1 +Description: Navigation-mesh Toolset for Games diff --git a/ports/recast/portfile.cmake b/ports/recast/portfile.cmake new file mode 100644 index 000000000..9c26131da --- /dev/null +++ b/ports/recast/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO recastnavigation/recastnavigation + REF 1.5.1 + SHA512 09900d8893e0c633a79e6188d15e68d1047040a0f2bceb2542f486dded64e69b918eaae159def81416a014fae26a46502783a2a712462bee4be2a3edf7bef47f + HEAD_REF master +) + +file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} +) + +vcpkg_install_cmake() + +file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/recast RENAME copyright) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +vcpkg_copy_pdbs() |
