File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,28 @@ set_and_check(PCL_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
23
23
24
24
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /Modules" )
25
25
26
+ ### ---[ some useful macros
27
+ macro (pcl_report_not_found _reason)
28
+ unset (PCL_FOUND)
29
+ unset (PCL_LIBRARIES)
30
+ unset (PCL_COMPONENTS)
31
+ unset (PCL_INCLUDE_DIRS)
32
+ unset (PCL_LIBRARY_DIRS)
33
+ unset (PCL_DEFINITIONS)
34
+ if (PCL_FIND_REQUIRED)
35
+ message (FATAL_ERROR ${_reason} )
36
+ elseif (NOT PCL_FIND_QUIETLY)
37
+ message (WARNING ${_reason} )
38
+ endif ()
39
+ return ()
40
+ endmacro ()
41
+
42
+ macro (pcl_message)
43
+ if (NOT PCL_FIND_QUIETLY)
44
+ message (${ARGN} )
45
+ endif ()
46
+ endmacro ()
47
+
26
48
### ---[ 3rd party libraries
27
49
macro (find_boost)
28
50
if (PCL_ALL_IN_ONE_INSTALLER)
You can’t perform that action at this time.
0 commit comments