vcpkg/ports/vlpp/portfile.cmake

27 lines
824 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO vczh-libraries/Release
REF 5dfe25c4f4997da2d7a23bdc80c2438e72d9813a # 0.11.0.0
SHA512 5d585e561246385b074c625a3644b79defa22328dab0ab14112c846cb917f384abb617a5f400971ca29e4ee5ac391b88b17ee65d594caf9ebf279806db669a4a
HEAD_REF master
)
2022-01-11 05:09:22 +08:00
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
2022-01-11 05:09:22 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
2022-01-11 05:09:22 +08:00
vcpkg_cmake_install()
vcpkg_copy_pdbs()
2022-01-11 05:09:22 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Tools
2022-01-11 05:09:22 +08:00
file(INSTALL "${SOURCE_PATH}/Tools/CppMerge.exe" DESTINATION "${CURRENT_PACKAGES_DIR}/tools")
# Handle copyright
2022-01-11 05:09:22 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/vlpp" RENAME copyright)