2022-12-27 09:59:48 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ETLCPP/etl
|
2024-02-15 08:40:51 +01:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 fcfa30f4e702444b7cc9a41c97ba8c370e18468782a11fcde40d198f7f0475b3f6e45531c8fe2898e5ab0086c24f0cf9dc72ebf8c16480ac3c09dd301c476f0a
|
2022-12-27 09:59:48 +01:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2024-02-15 08:40:51 +01:00
|
|
|
# header-only
|
|
|
|
set(VCPKG_BUILD_TYPE "release")
|
|
|
|
|
2022-12-27 09:59:48 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2024-02-15 08:40:51 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/etl/cmake)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/etl/.vscode")
|
|
|
|
# remove templates used for generating headers
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/etl/generators")
|
|
|
|
file(GLOB_RECURSE PNG_FILES "${CURRENT_PACKAGES_DIR}/include/etl/*.png")
|
|
|
|
file(REMOVE ${PNG_FILES})
|
2022-12-27 09:59:48 +01:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|