You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
769 B
CMake
34 lines
769 B
CMake
11 years ago
|
# - Locate LibVR library
|
||
|
# This module defines
|
||
|
# LIBVR_LIBRARIES, the libraries to link against
|
||
|
# LIBVR_FOUND, if false, do not try to link to LIBVR
|
||
|
# LIBVR_INCLUDE_DIR, where to find headers.
|
||
|
|
||
|
IF(LIBVR_LIBRARIES AND LIBVR_INCLUDE_DIR)
|
||
|
# in cache already
|
||
|
SET(LIBVR_FIND_QUIETLY TRUE)
|
||
8 years ago
|
ENDIF()
|
||
11 years ago
|
|
||
|
FIND_PATH(LIBVR_INCLUDE_DIR hmd.h
|
||
|
PATH_SUFFIXES include/LibVR
|
||
|
)
|
||
|
|
||
|
FIND_LIBRARY(LIBVR_LIBRARY
|
||
|
NAMES vr
|
||
|
PATH_SUFFIXES lib
|
||
|
PATHS
|
||
|
)
|
||
|
|
||
|
IF(LIBVR_LIBRARY AND LIBVR_INCLUDE_DIR)
|
||
|
IF(NOT LIBVR_FIND_QUIETLY)
|
||
|
MESSAGE(STATUS "Found LibVR: ${LIBVR_LIBRARY}")
|
||
8 years ago
|
ENDIF()
|
||
11 years ago
|
SET(LIBVR_FOUND "YES")
|
||
|
SET(LIBVR_DEFINITIONS "-DHAVE_LIBVR")
|
||
9 years ago
|
SET(NL_STEREO_AVAILABLE ON)
|
||
8 years ago
|
ELSE()
|
||
11 years ago
|
IF(NOT LIBVR_FIND_QUIETLY)
|
||
|
MESSAGE(STATUS "Warning: Unable to find LibVR!")
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|