imgui-sfml provides CMake targets: find_package(ImGui-SFML CONFIG REQUIRED) target_link_libraries(main PRIVATE ImGui-SFML::ImGui-SFML)