rkcommon provides CMake targets: find_package(rkcommon CONFIG REQUIRED) target_link_libraries(main PRIVATE rkcommon::rkcommon)