vcpkg/ports/urdfdom-headers/portfile.cmake

30 lines
1018 B
CMake
Raw Normal View History

2017-09-04 05:34:01 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ros/urdfdom_headers
REF "${VERSION}"
SHA512 b0eed4da4d1f165ab33812c181000fa58f3d817703a0b8728a9d4b9f888eeed15d095072c16eb5779850e8a88984633345b444396c58bd79bedf7bf3eb6e16bc
2017-09-04 05:34:01 +08:00
HEAD_REF master
PATCHES fix-include-path.patch
2017-09-04 05:34:01 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2017-09-04 05:34:01 +08:00
)
vcpkg_cmake_install()
2017-09-04 05:34:01 +08:00
if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
vcpkg_cmake_config_fixup(CONFIG_PATH CMake PACKAGE_NAME urdfdom_headers)
else()
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")
endif()
2017-09-04 05:34:01 +08:00
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
2017-09-04 05:34:01 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)