-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make custom_validators accessible from external library #239
Comments
@christophfroehlich I think inserting the include directly as specified, e.g. |
@christophfroehlich to be sure I understand you problem correctly :
Am I correct ? |
exactly 🤔 |
@pac48 do you mean you could write in A's find_package(B REQUIRED)
generate_parameter_library(my_parameters_target
src/my_parameters_definition.yaml
B/custom_validator.hpp
)
target_link_libraries(my_parameters_target B::custom_validator) |
@AugusteBourgois That looks right. I think one additional step would be to ensure |
With #213 it is straightforward to use a complete cpp library within another package. But how can I use a custom_validator file from a different package?
Is there a smarter way to include the file from here to another library than
@AugusteBourgois any suggestions?
Changing the macro here to avoid a COPY but just use the correct include path
control_toolbox/custom_validators.hpp
?generate_parameter_library/generate_parameter_library/cmake/generate_parameter_library.cmake
Lines 42 to 54 in 891c291
The text was updated successfully, but these errors were encountered: