2016-10-27 10:48:51 +08:00
|
|
|
#header-only library
|
2016-09-20 05:48:06 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-08-10 03:31:51 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nothings/stb
|
2019-08-25 04:43:57 +08:00
|
|
|
REF c72a95d766b8cbf5514e68d3ddbf6437ac9425b1
|
|
|
|
SHA512 2be9b2d7848fca133d5733ebb0fdd1f357195f38a2f2b471af3657468f00a75cc94f029ace6127e748da80e0f86933c16a554593a21d8a9057b7691d39facf4b
|
2017-08-10 03:31:51 +08:00
|
|
|
HEAD_REF master
|
2016-09-20 05:48:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2016-09-29 08:05:56 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
|
2016-09-20 07:18:00 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright)
|
2016-09-20 05:48:06 +08:00
|
|
|
|
|
|
|
# Copy the stb header files
|
2016-09-29 08:05:56 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
|
2016-09-20 07:37:31 +08:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|