vcpkg/ports/cli11/portfile.cmake

25 lines
761 B
CMake
Raw Normal View History

2018-11-12 10:54:36 +03:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO CLIUtils/CLI11
REF 0d06d21b56eadef9dcb24907ee2866b2b6f0babe #version 2.0.0
SHA512 1952ce0e9fd3bc6646f00abdd7f0f7bae541c383b691a985b0f70ca53fe80a9acbcf68c07c59e021c92aae7b1e062fd7ffe4c9f9b198b95525dde3a1ce83c2f5
2018-11-12 10:54:36 +03:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2018-11-12 10:54:36 +03:00
OPTIONS
-DCLI11_BUILD_EXAMPLES=OFF
-DCLI11_BUILD_DOCS=OFF
-DCLI11_BUILD_TESTS=OFF
2018-11-12 10:54:36 +03:00
)
vcpkg_cmake_install()
2018-11-12 10:54:36 +03:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CLI11)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2018-11-12 10:54:36 +03:00
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)