Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 3f08718

Browse files
author
Daniel
authored
Add files via upload
1 parent 6ec4283 commit 3f08718

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ message("***********************")
3636
message("PCL PACKAGE")
3737
message("***********************")
3838

39-
find_package(PCL 1.8 PATHS ${PCL_DIR})
39+
find_package(PCL 1.8 PATHS ${PCL_DIR} REQUIRED COMPONENTS common io visualization)
4040
if(PCL_FOUND)
4141
message(STATUS "PCL status:")
4242
message(STATUS " version: ${PCL_VERSION}")
@@ -80,7 +80,7 @@ add_executable(${PROJECT_NAME} ${MAIN_SOURCE} "src/dbScan.cpp" "src/OctreeGenera
8080
##############################################################################
8181
# TARGET LIBRARIES
8282
##############################################################################
83-
target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})
83+
target_link_libraries(${PROJECT_NAME} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_VISUALIZATION_LIBRARY})
8484

8585
message("=========================================")
8686
message("Project: ${PROJECT_NAME} COMPILED WITH CMAKE " ${CMAKE_VERSION})

0 commit comments

Comments
 (0)