File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
include/pcl/recognition/hv Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -354,12 +354,7 @@ if(PKG_CONFIG_FOUND)
354
354
pkg_check_modules (METSLIB metslib )
355
355
if (METSLIB_FOUND )
356
356
set (HAVE_METSLIB ON )
357
- include_directories (SYSTEM ${METSLIB_INCLUDE_DIRS} )
358
- else ()
359
- include_directories (SYSTEM "${PCL_SOURCE_DIR} /recognition/include/pcl/recognition/3rdparty/" )
360
357
endif ()
361
- else ()
362
- include_directories (SYSTEM ${PCL_SOURCE_DIR} /recognition/include/pcl/recognition/3rdparty/ )
363
358
endif ()
364
359
365
360
# LibPNG
Original file line number Diff line number Diff line change @@ -161,6 +161,13 @@ set(LIB_NAME "pcl_${SUBSYS_NAME}")
161
161
include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /include" )
162
162
PCL_ADD_LIBRARY (${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} ${impl_incs} ${face_detection_incs} ${ransac_based_incs} ${ransac_based_impl_incs} ${hv_incs} ${hv_impl_incs} ${cg_incs} ${cg_impl_incs} ${metslib_incs} )
163
163
target_link_libraries ("${LIB_NAME} " pcl_common pcl_kdtree pcl_octree pcl_search pcl_features pcl_registration pcl_sample_consensus pcl_filters pcl_ml pcl_io )
164
+
165
+ if (HAVE_METSLIB )
166
+ target_include_directories (${LIB_NAME} SYSTEM PUBLIC ${METSLIB_INCLUDE_DIRS} )
167
+ else ()
168
+ target_include_directories (${LIB_NAME} SYSTEM PUBLIC ${PCL_SOURCE_DIR} /recognition/include/pcl/recognition/3rdparty/ )
169
+ endif ()
170
+
164
171
PCL_MAKE_PKGCONFIG (${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS} )
165
172
# Install include files
166
173
PCL_ADD_INCLUDES ("${SUBSYS_NAME} " "${SUBSYS_NAME} " ${incs} )
Original file line number Diff line number Diff line change 19
19
20
20
#include < pcl/pcl_macros.h>
21
21
#include < pcl/recognition/hv/hypotheses_verification.h>
22
- #include < pcl/recognition/3rdparty/metslib/mets.hh>
23
22
#include < pcl/features/normal_3d.h>
24
23
24
+ #include < metslib/mets.hh> // Either include 3.party in pcl/recognition/3rdparty or system installed metslib
25
+
25
26
#include < memory>
26
27
27
28
namespace pcl
You can’t perform that action at this time.
0 commit comments