forked from Eyescale/CMake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindVRPN.cmake
31 lines (27 loc) · 850 Bytes
/
FindVRPN.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
set(VRPN_FOUND)
if (VRPN_PATH)
# Set by user...
else (VRPN_PATH)
find_path(VRPN_PATH include/vrpn_Tracker.h
HINTS ${VRPN_ROOT} $ENV{VRPN_ROOT}
"C:/Program Files/VRPN"
/usr/local/ /opt/VRPN /opt /sw/VRPN /opt/local)
endif (VRPN_PATH)
find_library(VRPN_LIBRARIES NAMES vrpn PATHS ${VRPN_PATH}/lib NO_DEFAULT_PATH)
if(VRPN_PATH AND VRPN_LIBRARIES)
set(VRPN_FOUND TRUE)
set(VRPN_INCLUDE_DIRS ${VRPN_PATH}/include)
if(NOT VRPN_FIND_QUIETLY)
message(STATUS "Found VRPN in ${VRPN_INCLUDE_DIRS};${VRPN_LIBRARIES}")
endif()
else()
if(VRPN_FIND_REQUIRED)
message(FATAL_ERROR "Could not find VRPN")
elseif(NOT VRPN_FIND_QUIETLY)
if(NOT VRPN_PATH)
message(STATUS "Could not find VRPN header vrpn_Tracker.h")
else()
message(STATUS "Could not find libvrpn in ${VRPN_PATH}")
endif()
endif()
endif()