This repository has been archived by the owner on Jun 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathLVRConfig.cmake.in
87 lines (70 loc) · 2.13 KB
/
LVRConfig.cmake.in
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -----------------------------------------------------------------
# lvr's cmake configuration
#
# provided options:
# - LVR_USE_STATIC_LIBS(=OFF) to link the static libraries of lvr
#
# provided interface variables:
# - LVR_INCLUDE_DIRS
# - LVR_DEFINITIONS
# - LVR_LIBRARIES
#
# Do not forget to add_defintions(${LVR_DEFINITIONS}) as they
# describe the build configuration of liblvr.
#
# -----------------------------------------------------------------
include("${CMAKE_CURRENT_LIST_DIR}/lvrTargets.cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/Modules")
cmake_policy(PUSH)
cmake_policy(SET CMP0012 NEW)
set(LVR_INCLUDE_DIRS @LVR_INSTALL_INCLUDE_DIRS@)
set(LVR_DEFINITIONS @LVR_DEFINITIONS@)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
find_package(VTK REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${VTK_INCLUDE_DIRS})
list(APPEND LVR_DEFINITIONS ${VTK_DEFINTIONS})
# nabo
if(@NABO_FOUND@)
find_package(Nabo REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${NABO_INCLUDE_DIRS})
endif()
# pcl
if(@PCL_FOUND@)
find_package(PCL REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${PCL_INCLUDE_DIRS})
list(APPEND LVR_DEFINITIONS ${PCL_DEFINITIONS})
endif()
# cgal
if(@CGAL_FOUND@)
find_package(CGAL REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${CGAL_INCLUDE_DIRS})
endif()
find_package(Boost REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${Boost_INCLUDE_DIRS})
list(APPEND LVR_DEFINITIONS ${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
find_package(OpenGL REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR})
find_package(GLUT REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${GLUT_INCLUDE_DIR})
# libfreenect
if(@LIBFREENECT_FOUND@)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBFREENECT REQUIRED libfreenect)
list(APPEND LVR_INCLUDE_DIRS ${LIBFREENECT_INCLUDE_DIRS})
endif()
# stann
if(@STANN_FOUND@)
set(STANN_DIR @STANN_DIR@)
find_package(STANN REQUIRED)
list(APPEND LVR_INCLUDE_DIRS ${STANN_INCLUDE_DIR})
endif()
cmake_policy(POP)
option(LVR_USE_STATIC_LIBS OFF)
if(LVR_USE_STATIC_LIBS)
set(LVR_LIBRARIES lvr::LVR_static)
else()
set(LVR_LIBRARIES lvr::lvr)
endif()
set(LVR_FOUND TRUE)