2022-03-29 04:32:04 +08:00
|
|
|
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}"
|
2024-01-25 03:16:46 +08:00
|
|
|
SHA512 8e3a03c2d588ac1f8ed3d0988b90f7560f2c0b36c05f5bf9b6f029a5f4c6e4ab49d7153ef7a9bbbdb018c719a92d1da08a6af259ba95972bf8fd60766d4a480e
|
2020-10-21 03:22:08 +08:00
|
|
|
HEAD_REF dev
|
|
|
|
)
|
|
|
|
|
2022-03-29 04:32:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
"-Dezc3d_BIN_FOLDER=bin"
|
|
|
|
"-Dezc3d_LIB_FOLDER=lib"
|
|
|
|
-DBUILD_EXAMPLE=OFF
|
|
|
|
)
|
2021-10-19 05:23:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-03-29 04:32:04 +08:00
|
|
|
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")
|
|
|
|
|
2022-03-29 04:32:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|