2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2017-09-04 05:34:47 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
2022-08-06 14:09:54 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ros/urdfdom
|
2023-05-12 01:09:03 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 6386954bc7883e82d9db7c785ae074b47ca31efb7cc2686101e7813768824bed5b46a774a1296453c39ff76673a9dc77305bb2ac96b86ecf93fab22062ef2258
|
2022-08-06 14:09:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
0001_use_math_defines.patch
|
|
|
|
0005-fix-config-and-install.patch
|
2023-05-12 01:09:03 +08:00
|
|
|
0006-pc_file_for_windows.patch
|
2017-09-04 05:34:47 +08:00
|
|
|
)
|
|
|
|
|
2022-01-08 06:47:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-08-06 14:09:54 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2017-09-04 05:34:47 +08:00
|
|
|
)
|
|
|
|
|
2022-01-08 06:47:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-09-04 05:34:47 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-08-06 14:09:54 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES check_urdf urdf_mem_test urdf_to_graphiz urdf_to_graphviz AUTO_CLEAN)
|
2022-01-08 06:47:34 +08:00
|
|
|
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
2019-03-06 02:44:01 +08:00
|
|
|
else()
|
2022-01-08 06:47:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/urdfdom/cmake)
|
|
|
|
# Empty folders
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/urdfdom")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/urdfdom")
|
2019-03-06 02:44:01 +08:00
|
|
|
endif()
|
2017-09-04 05:34:47 +08:00
|
|
|
|
2022-01-08 06:47:34 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW)
|
2020-11-06 14:52:44 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
endif()
|
|
|
|
|
2022-01-08 06:47:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-11-06 14:52:44 +08:00
|
|
|
|
2022-01-08 06:47:34 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|