catkin export definitions
packages that use PCL need to add those 2 lines in the CMakeLists:
add_definitions(${PCL_DEFINITIONS})
link_directories(${PCL_LIBRARY_DIRS})
Is there an option to pass those flags and apply them automatically to all packages that use PCL indirectly, by depending on a package that uses PCL?
e.g. let's a package A that uses PCL and so it has the 2 lines above in its CMakeLists, and a package B that uses package A, but does not use PCL directly. It's CMakeLists thus does not include those 2 lines.
I does not seem practical to request a package developer to check all the packages depended upon and check what flags they require... So I bet there is a solution...