2016-09-21 02:13:39 +03:00
|
|
|
include(vcpkg_common_functions)
|
2017-06-20 11:36:16 -07:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO g-truc/glm
|
2019-04-30 09:20:18 -07:00
|
|
|
REF 0.9.9.5
|
|
|
|
SHA512 3b329acf5144aab1c0f47f8045d34e097699bd6685118ad8322c5ce23afdcb44ba2bb07e49301db06355b8eef7d4340b72251d55e113b533740d1e6ef6609911
|
2017-06-20 11:36:16 -07:00
|
|
|
HEAD_REF master
|
2016-09-21 02:13:39 +03:00
|
|
|
)
|
|
|
|
|
2019-05-13 20:51:16 -04:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2017-12-19 15:25:03 +08:00
|
|
|
|
2017-06-20 11:36:16 -07:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-05-13 20:51:16 -04:00
|
|
|
PREFER_NINJA
|
2017-06-20 11:36:16 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-05-13 20:51:16 -04:00
|
|
|
vcpkg_fixup_cmake_targets()
|
2017-06-20 11:36:16 -07:00
|
|
|
|
2019-05-13 20:51:16 -04:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
2016-09-21 10:34:07 +03:00
|
|
|
|
2016-09-21 02:13:39 +03:00
|
|
|
# Put the license file where vcpkg expects it
|
2018-05-22 22:03:43 -07:00
|
|
|
file(COPY ${SOURCE_PATH}/manual.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/manual.md ${CURRENT_PACKAGES_DIR}/share/glm/copyright)
|