vcpkg/ports/piex/portfile.cmake

23 lines
658 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2017-09-03 23:09:39 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/piex
REF 256bd102be288c19b4165e0ecc7097a18c004e92
SHA512 ae948588a99d586593788c995c3d65a488faaf99b2ab6c51ec39df7e11a42c89454dd505117e90b1f152f6abfc2e3e11f61b0af97e42ecdff0d978934e20f582
2017-09-03 23:09:39 +08:00
HEAD_REF master
)
2022-01-19 05:03:27 +08:00
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
2017-09-03 23:09:39 +08:00
2022-01-19 05:03:27 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2017-09-03 23:09:39 +08:00
OPTIONS_DEBUG
2022-01-19 05:03:27 +08:00
-DDISABLE_INSTALL_HEADERS=ON
2017-09-03 23:09:39 +08:00
)
2022-01-19 05:03:27 +08:00
vcpkg_cmake_install()
2017-09-03 23:09:39 +08:00
vcpkg_copy_pdbs()
2022-01-19 05:03:27 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/piex" RENAME copyright)