forked from norlab-ulaval/libpointmatcher
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
93 lines (86 loc) · 3.17 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
83
84
85
86
87
88
89
90
91
92
cmake_minimum_required(VERSION 3.16.3)
project(libpointmatcher)
if("$ENV{ROS_VERSION}" STREQUAL "1")
# Pointmatcher lib and install
set(POINTMATCHER_SRC
pointmatcher/Logger.cpp
pointmatcher/Exceptions.cpp
pointmatcher/DataPoints.cpp
pointmatcher/Matches.cpp
pointmatcher/ICP.cpp
pointmatcher/Registry.cpp
pointmatcher/Registrar.cpp
pointmatcher/DataPointsFilter.cpp
pointmatcher/Matcher.cpp
pointmatcher/OutlierFilter.cpp
pointmatcher/ErrorMinimizer.cpp
pointmatcher/Transformation.cpp
pointmatcher/TransformationChecker.cpp
pointmatcher/Inspector.cpp
pointmatcher/IO.cpp
pointmatcher/IOFunctions.cpp
pointmatcher/Bibliography.cpp
pointmatcher/Timer.cpp
pointmatcher/Histogram.cpp
pointmatcher/Parametrizable.cpp
pointmatcher/LoggerImpl.cpp
pointmatcher/MatchersImpl.cpp
pointmatcher/OutlierFiltersImpl.cpp
pointmatcher/SurfaceNormalEstimatorPCA.cpp
pointmatcher/TransformationsImpl.cpp
pointmatcher/TransformationCheckersImpl.cpp
pointmatcher/InspectorsImpl.cpp
#ErrorMinimizers
pointmatcher/ErrorMinimizers/PointToPlane.cpp
pointmatcher/ErrorMinimizers/PointToPlaneWithCov.cpp
pointmatcher/ErrorMinimizers/PointToPoint.cpp
pointmatcher/ErrorMinimizers/PointToPointWithCov.cpp
pointmatcher/ErrorMinimizers/PointToPointSimilarity.cpp
pointmatcher/ErrorMinimizers/Identity.cpp
#DataPointsFilters
pointmatcher/DataPointsFilters/Identity.cpp
pointmatcher/DataPointsFilters/HiddenPointRemoval.cpp
pointmatcher/DataPointsFilters/RemoveNaN.cpp
pointmatcher/DataPointsFilters/MaxDist.cpp
pointmatcher/DataPointsFilters/MinDist.cpp
pointmatcher/DataPointsFilters/BoundingBox.cpp
pointmatcher/DataPointsFilters/MaxQuantileOnAxis.cpp
pointmatcher/DataPointsFilters/MaxDensity.cpp
pointmatcher/DataPointsFilters/SurfaceNormal.cpp
pointmatcher/DataPointsFilters/SamplingSurfaceNormal.cpp
pointmatcher/DataPointsFilters/OrientNormals.cpp
pointmatcher/DataPointsFilters/IncidenceAngle.cpp
pointmatcher/DataPointsFilters/RandomSampling.cpp
pointmatcher/DataPointsFilters/MaxPointCount.cpp
pointmatcher/DataPointsFilters/FixStepSampling.cpp
pointmatcher/DataPointsFilters/Shadow.cpp
pointmatcher/DataPointsFilters/SimpleSensorNoise.cpp
pointmatcher/DataPointsFilters/ObservationDirection.cpp
pointmatcher/DataPointsFilters/VoxelGrid.cpp
pointmatcher/DataPointsFilters/CutAtDescriptorThreshold.cpp
pointmatcher/DataPointsFilters/Elipsoids.cpp
pointmatcher/DataPointsFilters/Gestalt.cpp
pointmatcher/DataPointsFilters/OctreeGrid.cpp
pointmatcher/DataPointsFilters/NormalSpace.cpp
pointmatcher/DataPointsFilters/CovarianceSampling.cpp
pointmatcher/DataPointsFilters/DistanceLimit.cpp
pointmatcher/DataPointsFilters/RemoveSensorBias.cpp
pointmatcher/DataPointsFilters/OrganizedCloudSurfaceNormal.cpp
#PointCloudGenerators
pointmatcher/PointCloudGenerator.cpp
)
file(GLOB_RECURSE POINTMATCHER_HEADERS "pointmatcher/*.h")
# Build type options:
# * catkin.
# * cmake.
# * ament (future).
# Regardless of the type chosen, the library 'libnabo' must be configured in the same way for the linker to suceed.
set(BUILD_TYPE "catkin")
if (BUILD_TYPE STREQUAL "catkin")
include(CatkinBuild.cmake)
else()
include(PureCMakeBuild.cmake)
endif()
else() # ROS version 2
include(ColconBuild.cmake)
endif()