vcpkg/ports/audiofile/portfile.cmake

14 lines
510 B
CMake
Raw Normal View History

2020-08-01 02:30:06 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO adamstark/AudioFile
REF ccb64bd86881099e65a329f104733679ae03f63e # 1.0.7
SHA512 f172f9df95a028c9c3da29cd530dd4b55acad76ee7503000f96ba10c5d014abd219fcd145cea4b7ca7a902c38d968518b39de285d25f7e3ccc56d1ba3769d7b8
HEAD_REF master
)
file(COPY ${SOURCE_PATH}/AudioFile.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)