mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 19:42:36 +02:00
Said files are now buried under hidden/externals; the (phony) build targets still exist and are visible in the target dropdown, but this is filterable (in Xcode, dunno about Visual Studio (just start typing and a filter/search box comes up))
41 lines
1.1 KiB
CMake
41 lines
1.1 KiB
CMake
include(ExternalProject)
|
|
include(SelectLibraryConfigurations)
|
|
|
|
set(EXTERNAL_NAME OpenVR)
|
|
|
|
string(TOUPPER ${EXTERNAL_NAME} EXTERNAL_NAME_UPPER)
|
|
|
|
ExternalProject_Add(
|
|
${EXTERNAL_NAME}
|
|
URL https://github.com/ValveSoftware/openvr/archive/0.9.1.zip
|
|
URL_MD5 f986f5a6815e9454c53c5bf58ce02fdc
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
LOG_DOWNLOAD 1
|
|
)
|
|
|
|
# Hide this external target (for ide users)
|
|
set_target_properties(${EXTERNAL_NAME} PROPERTIES FOLDER "hidden/externals")
|
|
|
|
ExternalProject_Get_Property(${EXTERNAL_NAME} SOURCE_DIR)
|
|
|
|
set(${EXTERNAL_NAME_UPPER}_INCLUDE_DIRS ${SOURCE_DIR}/headers CACHE TYPE INTERNAL)
|
|
|
|
if (WIN32)
|
|
|
|
# FIXME need to account for different architectures
|
|
set(${EXTERNAL_NAME_UPPER}_LIBRARIES ${SOURCE_DIR}/lib/win32/openvr_api.lib CACHE TYPE INTERNAL)
|
|
|
|
elseif(APPLE)
|
|
|
|
# FIXME need to account for different architectures
|
|
set(${EXTERNAL_NAME_UPPER}_LIBRARIES ${SOURCE_DIR}/lib/osx32/libopenvr_api.dylib CACHE TYPE INTERNAL)
|
|
|
|
elseif(NOT ANDROID)
|
|
|
|
# FIXME need to account for different architectures
|
|
set(${EXTERNAL_NAME_UPPER}_LIBRARIES ${SOURCE_DIR}/lib/linux32/libopenvr_api.so CACHE TYPE INTERNAL)
|
|
|
|
endif()
|
|
|