vcpkg/ports/libe57format/portfile.cmake

19 lines
676 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO asmaloney/libE57Format
REF v2.3.0
SHA512 44feaf71d09d6765b322e2055efea09d2a99e706aa00dc4fd9281074fc05d06cce932400f5f4b91b20ed1cc070f117b7d39b95c54d33b31bc1e93532d698c175
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME E57Format CONFIG_PATH "lib/cmake/E57Format")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/libe57format RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")