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