mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 20:39:07 +08:00
16 lines
634 B
CMake
16 lines
634 B
CMake
|
# Header only library
|
||
|
vcpkg_download_distfile(ARCHIVE
|
||
|
URLS "http://download.savannah.nongnu.org/releases/pngpp/png++-0.2.10.tar.gz"
|
||
|
FILENAME "png++-0.2.10.tar.gz"
|
||
|
SHA512 c54a74c0c20212bd0dcf86386c0c11dd824ad14952917ba0ff4c184b6547744458728a4f06018371acb7d5b842b641708914ccaa81bad8e72e173903f494ca85
|
||
|
)
|
||
|
|
||
|
vcpkg_extract_source_archive_ex(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
ARCHIVE ${ARCHIVE}
|
||
|
)
|
||
|
|
||
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.hpp)
|
||
|
file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/png++)
|
||
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|