CMake wrapper to provide Fluent Bit C API.
The wrapper compiles Fluent Bit and export the library and includes. Some includes are not provided by the standard package and that is why there is a patch.
Then, in your ROS 2 project:
- Add it as dependency in your package.xml
- Add it as dependency in your CMakeLists.txt
find_package(fluent_bit_vendor REQUIRED)
find_package(fluent_bit REQUIRED)
- Include it in your project
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wparentheses"
#pragma GCC diagnostic ignored "-Wsign-compare"
#include <fluent-bit.h>
#pragma GCC diagnostic pop
- Link your cpp file to it
target_link_libraries(
my_library
fluent_bit::fluent_bit
)
- Run
colcon build