2016-09-21 07:13:39 +08:00
|
|
|
include(vcpkg_common_functions)
|
2016-09-29 08:05:56 +08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glm)
|
2016-09-21 07:13:39 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2016-09-25 06:23:04 +08:00
|
|
|
URLS "https://github.com/g-truc/glm/releases/download/0.9.8.0/glm-0.9.8.0.zip"
|
2016-09-21 07:13:39 +08:00
|
|
|
FILENAME "glm-0.9.8.0.zip"
|
2016-09-23 03:30:58 +08:00
|
|
|
SHA512 5fe9d1f582e7bbef37fd23c9d10fd9cf7696bb7c6f8086a250248e97f84b0205a89a195c8838a1ddc4c0a4cb4c69d1764f90db6513a9691a94877b7ec6b2befb
|
2016-09-21 07:13:39 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
2016-09-21 15:34:07 +08:00
|
|
|
# Remove glm/CMakeLists.txt
|
2016-09-29 08:05:56 +08:00
|
|
|
file(REMOVE ${SOURCE_PATH}/glm/CMakeLists.txt)
|
2016-09-21 15:34:07 +08:00
|
|
|
|
2016-09-21 07:13:39 +08:00
|
|
|
# Put the license file where vcpkg expects it
|
2016-09-29 08:05:56 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/)
|
2016-09-21 07:13:39 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/copying.txt ${CURRENT_PACKAGES_DIR}/share/glm/copyright)
|
|
|
|
|
|
|
|
# Copy the glm header files
|
2016-09-29 08:05:56 +08:00
|
|
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/glm/*)
|
2016-09-21 07:13:39 +08:00
|
|
|
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/glm)
|