vcpkg/ports/stb/portfile.cmake

18 lines
720 B
CMake
Raw Normal View History

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
REF e6afb9cbae4064da8c3e69af3ff5c4629579c1d2
SHA512 232ef301d4d6c82c7c5f0e4234b9160cc815f3b6bcc35d341cdf8738646f2f0887ee9838680699f4c9f4274b1390036b2c4fb3ebc2d663af8ff888114dc9f04b
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
file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md)
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
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)