Skip to content
Snippets Groups Projects
Commit 3402d327 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Make PCL controllably optional

parent 3e4966a8
No related branches found
No related tags found
No related merge requests found
Pipeline #10508 failed
......@@ -11,18 +11,26 @@ include(GNUInstallDirs)
include(CTest)
enable_testing()
option(WITH_PCL "Use PCL if available" ON)
option(WITH_FIXSTARS "Use Fixstars libSGM if available" ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
include(Findglog)
#find_package( glog REQUIRED )
find_package( OpenCV REQUIRED )
find_package( Threads REQUIRED )
find_package( URIParser REQUIRED )
find_package( MsgPack REQUIRED )
if (WITH_FIXSTARS)
find_package( LibSGM )
find_package( PCL )
#find_package( ZLIB REQUIRED )
endif()
if (WITH_PCL)
find_package( PCL QUIET COMPONENTS io common visualization registration )
endif()
set(CMAKE_CXX_STANDARD 17) # For PCL/VTK https://github.com/PointCloudLibrary/pcl/issues/2686
set(HAVE_OPENCV TRUE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment