-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVOculusSDK.cmake
31 lines (26 loc) · 1.07 KB
/
FindVOculusSDK.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: FindVOculusSDK.cmake 31553 2012-08-13 13:21:14Z dr165799 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VOCULUSSDK_FOUND )
vista_find_package_root( OculusSDK LibOVR/include/OVR.h )
if( OCULUSSDK_ROOT_DIR )
set( OCULUSSDK_INCLUDE_DIRS "${OCULUSSDK_ROOT_DIR}/LibOVR/Include" )
if( WIN32 )
if( VISTA_64BIT )
set( OCULUSSDK_LIBRARY_DIRS "${OCULUSSDK_ROOT_DIR}/LibOVR/Lib/x64" )
set( OCULUSSDK_LIBRARIES optimized libovr64 debug libovr64d )
else()
set( OCULUSSDK_LIBRARY_DIRS "${OCULUSSDK_ROOT_DIR}/LibOVR/Lib/Win32" )
set( OCULUSSDK_LIBRARIES optimized libovr debug libovrd )
endif()
else()
if( VISTA_64BIT )
set( OCULUSSDK_LIBRARY_DIRS "${OCULUSSDK_ROOT_DIR}/LibOVR/Lib/Linux/Release/x86_64" )
else()
set( OCULUSSDK_LIBRARY_DIRS "${OCULUSSDK_ROOT_DIR}/LibOVR/Lib/Linux/Release/i386" )
endif()
set( OCULUSSDK_LIBRARIES ovr )
endif()
endif()
endif()
find_package_handle_standard_args( VOculusSDK "OculusSDK could not be found" OCULUSSDK_ROOT_DIR OCULUSSDK_LIBRARIES )