mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 06:29:07 +08:00
08c951fef9
* [many ports] Upgrades to 2020.02.08 * Undo asio asmjit libimobiledevice mlpack mongo-c-driver oniguruma openmvg openvdb pcl * Update ci baseline file Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
48 lines
1.7 KiB
CMake
48 lines
1.7 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ValveSoftware/openvr
|
|
REF 39205f6b281a6131d1373d0217c1ab9ed19735ea # v1.9.16
|
|
SHA512 f609a25aaae42e23d8c1b89e9f7d7f5e0e18e52cd3b3125044fdfa348c0f0e8b1e9c9d884a8014bb5dbc07c4d2635a9852d229ba95568b6c33f86b6afb27140f
|
|
HEAD_REF master
|
|
)
|
|
|
|
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
set(ARCH_PATH "win64")
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
set(ARCH_PATH "win32")
|
|
else()
|
|
message(FATAL_ERROR "Package only supports x64 and x86 windows.")
|
|
endif()
|
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME)
|
|
message(FATAL_ERROR "Package only supports windows desktop.")
|
|
endif()
|
|
|
|
file(MAKE_DIRECTORY
|
|
${CURRENT_PACKAGES_DIR}/lib
|
|
${CURRENT_PACKAGES_DIR}/bin
|
|
${CURRENT_PACKAGES_DIR}/debug/lib
|
|
${CURRENT_PACKAGES_DIR}/debug/bin
|
|
)
|
|
file(COPY ${SOURCE_PATH}/lib/${ARCH_PATH}/openvr_api.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
|
file(COPY ${SOURCE_PATH}/lib/${ARCH_PATH}/openvr_api.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
|
file(COPY
|
|
${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.dll
|
|
${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.pdb
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/bin
|
|
)
|
|
file(COPY
|
|
${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.dll
|
|
${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.pdb
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin
|
|
)
|
|
file(COPY ${SOURCE_PATH}/headers DESTINATION ${CURRENT_PACKAGES_DIR})
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/headers ${CURRENT_PACKAGES_DIR}/include)
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openvr)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openvr/LICENSE ${CURRENT_PACKAGES_DIR}/share/openvr/copyright)
|