Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Package Layoutのルールに従ってヘッダーファイルをinstallする #36

@ShotaAk

Description

@ShotaAk

https://index.ros.org/doc/ros2/Contributing/Developer-Guide/#package-layout によると

src: contains all C and C++ code
    Also contains C/C++ headers which are not installed

include: contains all C and C++ headers which are installed
    <package name>: for all C and C++ installed headers they should be folder namespaced by the 
                                  package name

とある。

includeディレクトリにあるヘッダーファイルをinstallしてないものがいくつかあるので修正する。

参考:https://github.com/ros2/rosbag2/blob/master/rosbag2/CMakeLists.txt

やり方:

install(
  DIRECTORY include/
  DESTINATION include)

結果(例):
$ ls ~ros2_ws/install/hoge/include/hoge
huga.hpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions