Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CMake macro should generate cmake interface library #3

Open
tylerjw opened this issue Jul 7, 2022 · 0 comments
Open

CMake macro should generate cmake interface library #3

tylerjw opened this issue Jul 7, 2022 · 0 comments

Comments

@tylerjw
Copy link
Contributor

tylerjw commented Jul 7, 2022

Example usage:

CMakeLists.txt

package(foo)
generate_param_struct_lib(${PACKAGE_NAME}_parameters 
  YAML src/parameter_interface.yaml
  VALIDATE_INCLUDE include/my_node/param_validation.hpp
)

add_executable(${PACKAGE_NAME} src/my_node.cpp)
target_link_libraries(${PACKAGE_NAME} ${PACKAGE_NAME}_parameters)

src/parameter_interface.yaml

my_node_params:
  -

src/my_node.cpp

#include <foo_parameters/my_node_params.hpp>

foo/CMakeLists.txt
foo/src/{parameter_interface.yaml, my_node.cpp}
foo/config/foo.yaml
foo/launch/foo.launch

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant