2018-12-05 11:17:54 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Microsoft/cppgraphqlgen
|
2019-03-25 06:29:50 +08:00
|
|
|
REF v2.1.0
|
|
|
|
SHA512 6fdeade25fc5c4af18d0288b80044a94cc9dcba9eed1640ec2cce06741b874f027930761964ed72073a25e083c0cf2fb828b9cf9732099c8a4f185776b1e1b8a
|
2018-12-05 11:17:54 +08:00
|
|
|
HEAD_REF master
|
2019-04-10 05:34:58 +08:00
|
|
|
PATCHES
|
|
|
|
bigobj.patch
|
2018-12-05 11:17:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-01-09 05:03:57 +08:00
|
|
|
PREFER_NINJA
|
2018-12-05 11:17:54 +08:00
|
|
|
OPTIONS -DBUILD_TESTS=OFF -DUPDATE_SAMPLES=OFF
|
2019-01-09 05:03:57 +08:00
|
|
|
OPTIONS_RELEASE -DCMAKE_INSTALL_CONFIGDIR=${CURRENT_PACKAGES_DIR}/share/cppgraphqlgen -DCMAKE_INSTALL_TOOLSDIR=${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen
|
|
|
|
OPTIONS_DEBUG -DCMAKE_INSTALL_CONFIGDIR=${CURRENT_PACKAGES_DIR}/debug/share/cppgraphqlgen -DCMAKE_INSTALL_TOOLSDIR=${CURRENT_PACKAGES_DIR}/debug/tools/cppgraphqlgen
|
2018-12-05 11:17:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/cppgraphqlgen/copyright COPYONLY)
|
|
|
|
|
|
|
|
vcpkg_test_cmake(PACKAGE_NAME cppgraphqlgen)
|