Skip to content

[cmake] use PCL:: target for imported targets of PCL #6397

@kai-waang

Description

@kai-waang

PCL currently provides imported targets without namespacing (e.g., pcl_common, pcl_io, pcl_visualization), rather than using PackageName::Component naming conventions (e.g., PCL::common, PCL::io, PCL::visualization), which is commonly seen in many packages (Eigen3, Boost, VTK...)

If so, we can write:

find_package(PCL REQUIRED COMPONENTS io common)
target_link_libraries(foo PCL::io PCL::common)

or we can even have a target PCL::PCL to include all imported targets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions