vcpkg/ports/crow/portfile.cmake

22 lines
682 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO CrowCpp/crow
REF "v${VERSION}"
SHA512 197ce2fd5761078f77baa0e5cc8f38fbb94bd062ff63a7ebd993b1d4a7c33847080c8c722be0079f46f798677a49da66eed4dcef709c990aecfac18564223818
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCROW_BUILD_EXAMPLES=OFF
-DCROW_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Crow)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)