vcpkg/ports/nameof/portfile.cmake

27 lines
766 B
CMake
Raw Normal View History

2019-07-18 15:15:56 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Neargye/nameof
REF v0.10.2
SHA512 1ec508378d12eb4a65da1bee8011302f65e78bbcab82aae716afc673665af5283a5aae5f1d0de85c7d6f59bb7268e02fc01b171f50de26bb86dc27c3b46097fa
2019-07-18 15:15:56 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-07-18 15:15:56 +08:00
OPTIONS
-DNAMEOF_OPT_BUILD_EXAMPLES=OFF
-DNAMEOF_OPT_BUILD_TESTS=OFF
-DNAMEOF_OPT_INSTALL=ON
2019-07-18 15:15:56 +08:00
)
vcpkg_cmake_install()
2019-07-18 15:15:56 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
2019-07-18 15:15:56 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
2019-07-18 15:15:56 +08:00
# Handle copyright
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)