2016-09-21 07:13:39 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-06-21 02:36:16 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO g-truc/glm
|
2017-11-11 13:01:35 +08:00
|
|
|
REF 0.9.8.5
|
|
|
|
SHA512 5a7e84ecc5a54320c74776c133bfdbeaf0d4496a7a7fdf2f4ccf89e66b3665a577a370a662ac97a350a2b1f717ce769cb0826057ebb3b13c9c2fee65f20ac7b4
|
2017-06-21 02:36:16 +08:00
|
|
|
HEAD_REF master
|
2016-09-21 07:13:39 +08:00
|
|
|
)
|
|
|
|
|
2017-12-19 15:25:03 +08:00
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/ignore-warning-C4201.patch"
|
|
|
|
)
|
|
|
|
|
2017-06-21 02:36:16 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/glm")
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
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)
|