vcpkg/ports/stlab/portfile.cmake

24 lines
752 B
CMake
Raw Normal View History

2018-11-20 00:51:30 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stlab/libraries
REF 2e411dd5c8b7eb096e9eb04c46b569c775b126c6 # V1.5.2
SHA512 c0e3f8b7b44a6da9734b44e5693d28b84e75a9d4844e30d26dbc65cbd6673fe7e7a45f329aadf5ac3d1e7ec9b939230d179ed150bcf4c3f3e96a3a96ed04fadb
2019-11-22 09:15:49 +08:00
HEAD_REF develop
2018-11-20 00:51:30 +08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2018-11-20 00:51:30 +08:00
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_install_cmake()
2019-11-22 09:15:49 +08:00
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/stlab)
vcpkg_copy_pdbs()
2018-11-20 00:51:30 +08:00
# cleanup
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/cmake)
# handle copyright
2019-11-22 09:15:49 +08:00
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)