mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 21:49:01 +08:00
30 lines
1001 B
CMake
30 lines
1001 B
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO recp/cglm
|
||
|
REF "v${VERSION}"
|
||
|
SHA512 a89f76378aee6ee8a7a38b9ce975bff1873590b4cb83daaf658b2875578758d05e15e92ef7141df3109ee37e6b097eda0bb2e60b13fdeca536a72053145c5ece
|
||
|
)
|
||
|
|
||
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CGLM_BUILD_SHARED)
|
||
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CGLM_BUILD_STATIC)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
"-DCGLM_SHARED=${CGLM_BUILD_SHARED}"
|
||
|
"-DCGLM_STATIC=${CGLM_BUILD_STATIC}"
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/cglm")
|
||
|
vcpkg_fixup_pkgconfig()
|
||
|
|
||
|
vcpkg_copy_pdbs()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|