Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
15 lines
633 B
CMake
15 lines
633 B
CMake
macro(SetupPCL)
|
|
# -------------------------------- pcl ----------------------------------
|
|
|
|
# Can be used by ReverseEngineering module"
|
|
#
|
|
# PCL needs to be found before boost because the PCLConfig also calls find_package(Boost ...),
|
|
# but with different components
|
|
if(FREECAD_USE_PCL)
|
|
# pcl overrides the compiler flags by adding -Wno-deprecated
|
|
set (SAVE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
find_package(PCL REQUIRED COMPONENTS common kdtree features surface io filters segmentation sample_consensus)
|
|
set (CMAKE_CXX_FLAGS ${SAVE_CXX_FLAGS})
|
|
endif(FREECAD_USE_PCL)
|
|
endmacro(SetupPCL)
|