vcpkg/ports/ezc3d/portfile.cmake

24 lines
716 B
CMake
Raw Normal View History

vcpkg_from_github(
2020-10-21 03:22:08 +08:00
OUT_SOURCE_PATH SOURCE_PATH
REPO pyomeca/ezc3d
2023-10-04 09:05:03 +08:00
REF "Release_${VERSION}"
SHA512 8e3a03c2d588ac1f8ed3d0988b90f7560f2c0b36c05f5bf9b6f029a5f4c6e4ab49d7153ef7a9bbbdb018c719a92d1da08a6af259ba95972bf8fd60766d4a480e
2020-10-21 03:22:08 +08:00
HEAD_REF dev
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-Dezc3d_BIN_FOLDER=bin"
"-Dezc3d_LIB_FOLDER=lib"
-DBUILD_EXAMPLE=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
2020-10-21 03:22:08 +08:00
2023-10-04 09:05:03 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ezc3d")
2020-10-21 03:22:08 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)