vcpkg/ports/restclient-cpp/portfile.cmake

32 lines
843 B
CMake
Raw Normal View History

if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
2019-06-18 02:30:41 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mrtazz/restclient-cpp
REF 0.5.2
SHA512 f6acc6a3d5cb852d6e507463d94d2f6192a941f0c26fef7c674e9ff7753cf5474522052a2065774050d01af5c6d2a3b86398f43cd2e4f5d03abcaac9a21ef4b7
2019-06-18 02:30:41 +08:00
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2019-06-27 07:03:27 +08:00
OPTIONS
-DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
-DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
2019-06-18 02:30:41 +08:00
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/restclient-cpp)
vcpkg_copy_pdbs()
2019-06-18 02:30:41 +08:00
# Remove includes in debug
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
2019-06-18 02:30:41 +08:00
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)