vcpkg/ports/ezc3d/portfile.cmake

40 lines
1.0 KiB
CMake
Raw Normal View History

2020-10-21 03:22:08 +08:00
vcpkg_from_github(ARCHIVE
OUT_SOURCE_PATH SOURCE_PATH
REPO pyomeca/ezc3d
REF Release_1.4.6
SHA512 f63da7e715c09c6a757fe923fd397c09e1cbd0a58a78b1d8fa52bd1a41230ecab2cbb17ecc3d4f66656f3234bfe4c8588164f1d4964dcce729da091e99daab2d
2020-10-21 03:22:08 +08:00
HEAD_REF dev
)
if(WIN32)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLE=OFF
-Dezc3d_LIB_FOLDER="lib"
-Dezc3d_BIN_FOLDER="bin"
)
else()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLE=OFF
)
endif()
2020-10-21 03:22:08 +08:00
vcpkg_cmake_install()
2020-10-21 03:22:08 +08:00
if(WIN32)
vcpkg_cmake_config_fixup(CONFIG_PATH "CMake")
2020-10-21 03:22:08 +08:00
else()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake")
2020-10-21 03:22:08 +08:00
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()