2017-09-04 05:34:01 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ros/urdfdom_headers
|
2022-08-06 14:09:54 +08:00
|
|
|
REF 2981892df9da19d10f58dc84de63820e4f554f63 # 1.1.0
|
|
|
|
SHA512 cc47d2fb9781f4c7f1af25ccfb4dc8cc9e72d2ec22cb2fe16866bb0e7ed40494181a413dcd74cb0407b4f5c20262f076f8ae87d605ba0e5477a57ff29ba30967
|
2017-09-04 05:34:01 +08:00
|
|
|
HEAD_REF master
|
2020-10-14 04:17:32 +08:00
|
|
|
PATCHES fix-include-path.patch
|
2017-09-04 05:34:01 +08:00
|
|
|
)
|
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-09-04 05:34:01 +08:00
|
|
|
)
|
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-09-04 05:34:01 +08:00
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake PACKAGE_NAME urdfdom_headers)
|
2019-03-06 02:44:01 +08:00
|
|
|
else()
|
2022-08-06 14:09:54 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/urdfdom_headers/cmake PACKAGE_NAME urdfdom_headers)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/urdfdom_headers")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/urdfdom_headers")
|
2019-03-06 02:44:01 +08:00
|
|
|
endif()
|
2017-09-04 05:34:01 +08:00
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-09-08 05:25:03 +08:00
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-09-04 05:34:01 +08:00
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|