2016-10-26 19:48:51 -07:00
|
|
|
#header-only library
|
2016-09-19 23:48:06 +02:00
|
|
|
include(vcpkg_common_functions)
|
2017-08-09 21:31:51 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nothings/stb
|
2019-05-08 17:51:44 -07:00
|
|
|
REF 1034f5e5c4809ea0a7f4387e0cd37c5184de3cdd
|
|
|
|
SHA512 efc3deedd687615a6706b0d315ded8d76edb28fcd6726531956fde9bba81cc62f25df0a1f998b56e16ab0c62989687c7d5b58875789470c2bf7fd457b1ff6535
|
2017-08-09 21:31:51 +02:00
|
|
|
HEAD_REF master
|
2016-09-19 23:48:06 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2016-09-28 17:05:56 -07:00
|
|
|
file(COPY ${SOURCE_PATH}/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-28 17:05:56 -07:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
|
2016-09-19 16:37:31 -07:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|