File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ message("***********************")
3535message ("PCL PACKAGE" )
3636message ("***********************" )
3737
38- find_package (PCL 1.8 PATHS ${PCL_DIR} )
38+ find_package (PCL 1.8 PATHS ${PCL_DIR} REQUIRED COMPONENTS common io visualization )
3939if (PCL_FOUND)
4040 message (STATUS "PCL status:" )
4141 message (STATUS " version: ${PCL_VERSION} " )
4242 message (STATUS " pcl directorie: ${PCL_INCLUDE_DIRS} " )
4343else ()
4444 message (WARNING " PCL 1.8 not found, attempting 1.7..." )
45- find_package (PCL 1.7 REQUIRED)
45+ find_package (PCL 1.7 REQUIRED COMPONENTS common io visualization )
4646 if (PCL_FOUND)
4747 message (STATUS "PCL status:" )
4848 message (STATUS " version: ${PCL_VERSION} " )
@@ -79,7 +79,8 @@ add_executable(${PROJECT_NAME} ${MAIN_SOURCE})
7979##############################################################################
8080# TARGET LIBRARIES
8181##############################################################################
82- target_link_libraries (${PROJECT_NAME} ${PCL_LIBRARIES} )
82+ #target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})
83+ target_link_libraries (${PROJECT_NAME} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_VISUALIZATION_LIBRARY} )
8384
8485message ("=========================================" )
8586message ("Project: ${PROJECT_NAME} COMPILED WITH CMAKE " ${CMAKE_VERSION} )
You can’t perform that action at this time.
0 commit comments