2016-09-19 23:48:06 +02:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2016-09-19 16:18:00 -07:00
|
|
|
URL "https://github.com/nothings/stb/archive/e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
|
|
|
|
FILENAME "stb-e713a69f1ea6ee1e0d55725ed0731520045a5993.zip"
|
|
|
|
MD5 5d81d3036610045d5a8076728c4e2f7e
|
2016-09-19 23:48:06 +02:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2016-09-20 21:10:02 -07:00
|
|
|
set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/stb-e713a69f1ea6ee1e0d55725ed0731520045a5993)
|
|
|
|
file(COPY ${SOURCE_DIR}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
|
2016-09-19 16:18:00 -07:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright)
|
2016-09-19 23:48:06 +02:00
|
|
|
|
|
|
|
# Copy the stb header files
|
2016-09-20 21:10:02 -07:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_DIR}/*.h)
|
2016-09-19 16:37:31 -07:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|