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
|
2022-03-29 04:32:04 +08:00
|
|
|
REF Release_1.4.7
|
|
|
|
SHA512 ba234be76b5d95b9527952c7e1bf67d9725fc280bf991f45e7cbd68f1aeeab7e963c8c4d928e720d02ebc02ec2b0e41f1c28036cd728ccb4c5a77c6fa81a74ad
|
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
|
|
|
|
2022-03-29 04:32:04 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2021-10-19 05:23:19 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "CMake")
|
2020-10-21 03:22:08 +08:00
|
|
|
else()
|
2022-03-29 04:32:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ezc3d")
|
2020-10-21 03:22:08 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
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)
|