mirror of https://github.com/microsoft/vcpkg.git
28 lines
847 B
CMake
28 lines
847 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ETLCPP/etl
|
|
REF "${VERSION}"
|
|
SHA512 05301eabe065031c03b6699d74e3e530dfc75d0969d0b1bce6c075f14b47f2456a55cc4e8b56a4832df16e3780e2f484f02a923314ce6836479c388c306d304f
|
|
HEAD_REF master
|
|
)
|
|
|
|
# header-only
|
|
set(VCPKG_BUILD_TYPE "release")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_TESTS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
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})
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|