forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (25 loc) · 1.28 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
set(SUBSYS_NAME tests_sample_consensus)
set(SUBSYS_DESC "Point cloud library sample_consensus module unit tests")
PCL_SET_TEST_DEPENDENCIES(SUBSYS_DEPS sample_consensus)
set(OPT_DEPS io)
set(DEFAULT ON)
set(build TRUE)
PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ${DEFAULT} "${REASON}")
PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS} OPT_DEPS ${OPT_DEPS})
if (build)
PCL_ADD_TEST(sample_consensus test_sample_consensus
FILES test_sample_consensus.cpp
LINK_WITH pcl_gtest pcl_sample_consensus pcl_search pcl_common)
if (BUILD_io)
PCL_ADD_TEST(sample_consensus_plane_models test_sample_consensus_plane_models
FILES test_sample_consensus_plane_models.cpp
LINK_WITH pcl_gtest pcl_io pcl_sample_consensus
ARGUMENTS "${PCL_SOURCE_DIR}/test/sac_plane_test.pcd")
endif (BUILD_io)
PCL_ADD_TEST(sample_consensus_quadric_models test_sample_consensus_quadric_models
FILES test_sample_consensus_quadric_models.cpp
LINK_WITH pcl_gtest pcl_sample_consensus)
PCL_ADD_TEST(sample_consensus_line_models test_sample_consensus_line_models
FILES test_sample_consensus_line_models.cpp
LINK_WITH pcl_gtest pcl_sample_consensus)
endif (build)