vcpkg/ports/proxsuite/portfile.cmake

38 lines
1.1 KiB
CMake
Raw Permalink Normal View History

set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Simple-Robotics/proxsuite
REF "v${VERSION}"
SHA512 471f6ce375904e8ae6d4d78586461e01ea74d24329270b19d6c0c9c20554cba0e84bfdbd28dca4353c55ab10235159a02f3e8c4ffd584b82f6f681b688c524e8
HEAD_REF main
)
vcpkg_from_github(
OUT_SOURCE_PATH MODULES_SOURCE_PATH
REPO jrl-umi3218/jrl-cmakemodules
REF 570915059b50f7dead7dae4c7f782ad3612fdc6e
SHA512 829a075189ca2773c612027dce78c27a5c057087803e728524194d56d7e998e93a2ccee9521719eaca7caedf2c90a8fa8f311dafd072a42a07ad4425ac391f6e
HEAD_REF master
)
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake-module")
file(RENAME "${MODULES_SOURCE_PATH}" "${SOURCE_PATH}/cmake-module")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
-DBUILD_WITH_VECTORIZATION_SUPPORT=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")