mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:40:48 +08:00
31 lines
858 B
CMake
31 lines
858 B
CMake
vcpkg_from_github(ARCHIVE
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO pyomeca/ezc3d
|
|
REF Release_1.3.7
|
|
SHA512 5beb0909a4ddc56f5965b5f2edcfd2c8d68d473b172778ebe21bc134e1b4931cac1e6529676866d4238b41041658041a72ccd44879b9685d85f857a4e0df23ec
|
|
HEAD_REF dev
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_EXAMPLE=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
if (VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/ezc3d/cmake")
|
|
else()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake")
|
|
endif()
|
|
|
|
# # Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
# # Remove duplicated include directory
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|