forked from rosds/PCLBO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
82 lines (64 loc) · 2.75 KB
/
CMakeLists.txt
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
cmake_minimum_required (VERSION 2.8)
set (CMAKE_BUILD_TYPE Release)
project (pcl_lbo)
##############################################################################
# Required packages #
##############################################################################
# To handle the point clouds, compute normals and KdTree
find_package (PCL REQUIRED)
include_directories (${PCL_INCLUDE_DIRS})
link_directories (${PCL_LIBRARY_DIRS})
# Depending on the installation the package name might be Eigen3
find_package (Eigen3 REQUIRED)
include_directories (${Eigen3_INCLUDE_DIRS})
# CGAL Library used only to compute the Voronoi diagram
find_package (CGAL REQUIRED)
include_directories (${CGAL_INCLUDE_DIRS})
find_package (Boost COMPONENTS program_options filesystem REQUIRED)
include_directories (${Boost_INCLUDE_DIRS})
##############################################################################
# C++11 support required #
##############################################################################
include_directories (include)
add_definitions (-std=c++0x ${CGAL_CXX_FLAGS_INIT})
##############################################################################
# Compile the library #
##############################################################################
set (lbo_src
"src/meshlbo.cpp"
"src/meshgeoheat.cpp")
add_library (pclbo SHARED ${lbo_src})
install (TARGETS pclbo DESTINATION lib)
install (DIRECTORY include/pclbo DESTINATION include)
##############################################################################
# Compile a demo #
##############################################################################
add_executable (visualize_eigenfunctions EXCLUDE_FROM_ALL src/eigenfunctions_demo.cpp)
target_link_libraries (visualize_eigenfunctions
${Boost_LIBRARIES}
${CGAL_LIBRARY}
${CGAL_3RD_PARTY_LIBRARIES}
${PCL_LIBRARIES}
${Eigen3_LIBRARIES})
add_executable (heat EXCLUDE_FROM_ALL src/heat_demo.cpp)
target_link_libraries (heat
${Boost_LIBRARIES}
${CGAL_LIBRARY}
${CGAL_3RD_PARTY_LIBRARIES}
${PCL_LIBRARIES}
${Eigen3_LIBRARIES})
#add_executable (geoheat src/geoheat_demo.cpp)
#target_link_libraries (geoheat
#${Boost_LIBRARIES}
#${CGAL_LIBRARY}
#${CGAL_3RD_PARTY_LIBRARIES}
#${PCL_LIBRARIES}
#${Eigen3_LIBRARIES})
include_directories ("/usr/include/suitesparse")
add_executable (mesh_geoheat EXCLUDE_FROM_ALL src/mesh_geoheat_demo.cpp)
target_link_libraries (mesh_geoheat
pclbo
cholmod
${Boost_LIBRARIES}
${PCL_LIBRARIES}
${Eigen3_LIBRARIES})