1 # - Locate LibOVR library
3 # LIBOVR_LIBRARIES, the libraries to link against
4 # LIBOVR_FOUND, if false, do not try to link to LIBOVR
5 # LIBOVR_INCLUDE_DIR, where to find headers.
7 IF(LIBOVR_LIBRARIES AND LIBOVR_INCLUDE_DIR)
9 SET(LIBOVR_FIND_QUIETLY TRUE)
12 FIND_PATH(LIBOVR_INCLUDE_DIR
16 $ENV{LIBOVR_DIR}/Include
27 SET(LIBOVR_LIBRARY_BUILD_PATH "Lib/Linux/Release/x86_64")
29 SET(LIBOVR_LIBRARY_BUILD_PATH "Lib/Linux/Release/i386")
32 SET(LIBOVR_LIBRARY_BUILD_PATH "Lib/MacOS/Release")
35 SET(LIBOVR_LIBRARY_BUILD_PATH "Lib/x64")
37 SET(LIBOVR_LIBRARY_BUILD_PATH "Lib/Win32")
41 FIND_LIBRARY(LIBOVR_LIBRARY
44 $ENV{LIBOVR_DIR}/${LIBOVR_LIBRARY_BUILD_PATH}
56 IF(LIBOVR_LIBRARY AND LIBOVR_INCLUDE_DIR)
57 IF(NOT LIBOVR_FIND_QUIETLY)
58 MESSAGE(STATUS "Found LibOVR: ${LIBOVR_LIBRARY}")
60 SET(LIBOVR_FOUND "YES")
61 SET(LIBOVR_DEFINITIONS "-DHAVE_LIBOVR")
62 SET(NL_STEREO_AVAILABLE ON)
64 SET(LIBOVR_LIBRARIES ${LIBOVR_LIBRARY} X11 Xinerama udev pthread)
66 SET(LIBOVR_LIBRARIES ${LIBOVR_LIBRARY})
69 IF(NOT LIBOVR_FIND_QUIETLY)
70 MESSAGE(STATUS "Warning: Unable to find LibOVR!")