mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 02:09:01 +08:00
22 lines
723 B
CMake
22 lines
723 B
CMake
|
#header-only library
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO greg7mdp/gtl
|
||
|
REF 1.00
|
||
|
SHA512 842a5e2634919a04fdd87995a8ada2f949c51a070a7c175043e0f9105a93248325023f85b28f9406276c2912a0fb4015a2e9ba30113d4a0214492da0dc5e5716
|
||
|
HEAD_REF main
|
||
|
)
|
||
|
|
||
|
# Use greg7mdp/gtl's own build process, skipping examples and tests
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
)
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
# Delete redundant directories
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/doc")
|
||
|
|
||
|
# Put the licence file where vcpkg expects it
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|