1 # - Locate LibVR library
3 # LIBVR_LIBRARIES, the libraries to link against
4 # LIBVR_FOUND, if false, do not try to link to LIBVR
5 # LIBVR_INCLUDE_DIR, where to find headers.
7 IF(LIBVR_LIBRARIES AND LIBVR_INCLUDE_DIR)
9 SET(LIBVR_FIND_QUIETLY TRUE)
12 FIND_PATH(LIBVR_INCLUDE_DIR hmd.h
13 PATH_SUFFIXES include/LibVR
16 FIND_LIBRARY(LIBVR_LIBRARY
22 IF(LIBVR_LIBRARY AND LIBVR_INCLUDE_DIR)
23 IF(NOT LIBVR_FIND_QUIETLY)
24 MESSAGE(STATUS "Found LibVR: ${LIBVR_LIBRARY}")
26 SET(LIBVR_FOUND "YES")
27 SET(LIBVR_DEFINITIONS "-DHAVE_LIBVR")
28 SET(NL_STEREO_AVAILABLE ON)
30 IF(NOT LIBVR_FIND_QUIETLY)
31 MESSAGE(STATUS "Warning: Unable to find LibVR!")