-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindFreenect.cmake
More file actions
40 lines (35 loc) · 1.08 KB
/
Copy pathFindFreenect.cmake
File metadata and controls
40 lines (35 loc) · 1.08 KB
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
32
33
34
35
36
37
38
39
40
# - Find the libfreenect includes and library
# This module defines
# FREENECT_INCLUDE_DIR, path to libfreenect.h, etc.
# FREENECT_LIBRARIES, the libraries required to use FREENECT.
# FREENECT_FOUND, If false, do not try to use FREENECT.
find_path(FREENECT_INCLUDE_DIR libfreenect.h
/usr/include
/usr/include/libfreenect
/usr/local/include
/usr/local/include/libfreenect)
find_library(FREENECT_LIBRARY freenect
/usr/lib
/usr/local/lib)
mark_as_advanced(FREENECT_INCLUDE_DIR)
mark_as_advanced(FREENECT_LIBRARY)
set(FREENECT_FOUND "NO")
if(FREENECT_INCLUDE_DIR)
if(FREENECT_LIBRARY)
set(FREENECT_FOUND "YES")
set(FREENECT_LIBRARIES "${FREENECT_LIBRARY}")
endif()
endif()
if(FREENECT_FOUND)
if(NOT Freenect_FIND_QUIETLY)
message(STATUS "Found freenect library")
endif()
else(FREENECT_FOUND)
if(Freenect_FIND_REQUIRED)
message(FATAL_ERROR "Could not find the freenect library")
else()
if(NOT Freenect_FIND_QUIETLY)
message(STATUS "Could not find the freenect library")
endif()
endif()
endif()