aboutsummaryrefslogtreecommitdiff
path: root/ports/behaviortree-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ports/behaviortree-cpp')
-rw-r--r--ports/behaviortree-cpp/portfile.cmake28
-rw-r--r--ports/behaviortree-cpp/vcpkg.json2
2 files changed, 9 insertions, 21 deletions
diff --git a/ports/behaviortree-cpp/portfile.cmake b/ports/behaviortree-cpp/portfile.cmake
index b689ab480..f67153766 100644
--- a/ports/behaviortree-cpp/portfile.cmake
+++ b/ports/behaviortree-cpp/portfile.cmake
@@ -20,35 +20,23 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
+ -DCMAKE_DISABLE_FIND_PACKAGE_ament_cmake=1
+ -DCMAKE_DISABLE_FIND_PACKAGE_Curses=1
-DBUILD_EXAMPLES=OFF
-DBUILD_UNIT_TESTS=OFF
-DBUILD_TOOLS=OFF
)
vcpkg_install_cmake()
-
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/BehaviorTreeV3/cmake TARGET_PATH share/behaviortreev3)
vcpkg_copy_pdbs()
-set(TOOLS bt3_log_cat bt3_plugin_manifest)
-
-foreach(tool ${TOOLS})
- set(suffix ${VCPKG_TARGET_EXECUTABLE_SUFFIX})
- if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/${tool}${suffix}")
- file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${tool}${suffix}")
- endif()
- if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/${tool}${suffix}")
- file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${tool}${suffix}"
- DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
- file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${tool}${suffix}")
- endif()
-endforeach()
-
-vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
-
-file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
-
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
-file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/lib/BehaviorTreeV3"
+ "${CURRENT_PACKAGES_DIR}/debug/lib/BehaviorTreeV3"
+)
vcpkg_test_cmake(PACKAGE_NAME BehaviorTreeV3)
diff --git a/ports/behaviortree-cpp/vcpkg.json b/ports/behaviortree-cpp/vcpkg.json
index 97731b09c..783187faa 100644
--- a/ports/behaviortree-cpp/vcpkg.json
+++ b/ports/behaviortree-cpp/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "behaviortree-cpp",
"version-string": "3.5.1",
- "port-version": 1,
+ "port-version": 2,
"description": "Behavior Trees Library in C++.",
"homepage": "https://www.behaviortree.dev",
"supports": "!uwp & !osx",