class_loaderΒΆ

By default BUILD_SHARED_LIBS=ON used for class_loader because if linking against class_loader statically, plugins would not be loaded correctly at runtime, because both the plugin and the library loading it would use their own copy of class_loader.

hunter_add_package(class_loader)
find_package(catkin CONFIG REQUIRED COMPONENTS class_loader)

catkin_package()

add_executable(main main.cpp)
target_link_libraries(main ${catkin_LIBRARIES})