vcpkg/ports/libmidi2/portfile.cmake

22 lines
633 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO midi2-dev/AM_MIDI2.0Lib
REF "v${VERSION}"
SHA512 663c2449b30a426fae0c4b57eae6e3c4d95a402ce72f175f39064f251420ff06ef6d58cf635614c27938284ae8b51793d53fa87426ac122318cddaa55b48ef02
HEAD_REF main
)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")