[recast] Export unofficial target (#18671)

* [recast] Export unofficial target

* update version record

* Export INTERFACE_INCLUDE_DIRECTORIES

* Export more include dirs.

* Update versions/r-/recast.json
This commit is contained in:
Jack·Boos·Yu 2021-07-02 00:14:08 +08:00 committed by GitHub
parent 59e3243c99
commit 2d15043211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 19 deletions

View File

@ -1,14 +1,6 @@
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
@ -42,12 +34,30 @@ set(SRC
add_library(recast ${SRC})
target_include_directories(
recast PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/DebugUtils/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Detour/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/DetourCrowd/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/DetourTileCache/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Recast/Include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:include/Detour/Include>
$<INSTALL_INTERFACE:include/DetourCrowd/Include>
$<INSTALL_INTERFACE:include/DetourTileCache/Include>
$<INSTALL_INTERFACE:include/Recast/Include>
$<INSTALL_INTERFACE:include/DebugUtils/Include>
)
install(
TARGETS recast
EXPORT unofficial-recast-config
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(EXPORT unofficial-recast-config DESTINATION share/unofficial-recast)
if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY DebugUtils/Include/ DESTINATION include/recast/DebugUtils)
install(DIRECTORY Detour/Include/ DESTINATION include/recast/Detour)

View File

@ -1,4 +0,0 @@
Source: recast
Version: 1.5.1-3
Homepage: https://github.com/recastnavigation/recastnavigation
Description: Navigation-mesh Toolset for Games

View File

@ -8,16 +8,18 @@ vcpkg_from_github(
HEAD_REF master
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_cmake_install()
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/recast RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-recast CONFIG_PATH share/unofficial-recast)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

17
ports/recast/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "recast",
"version": "1.5.1",
"port-version": 4,
"description": "Navigation-mesh Toolset for Games",
"homepage": "https://github.com/recastnavigation/recastnavigation",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -5469,8 +5469,8 @@
"port-version": 1
},
"recast": {
"baseline": "1.5.1-3",
"port-version": 0
"baseline": "1.5.1",
"port-version": 4
},
"redis-plus-plus": {
"baseline": "1.2.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2f34af0b398b4c37f0cdf3fcd8dc9db965e4dd5e",
"version": "1.5.1",
"port-version": 4
},
{
"git-tree": "41f8cc06fc981d330671b88e08d02de55934155c",
"version-string": "1.5.1-3",