The package outcome provides CMake targets:

    find_package(outcome CONFIG REQUIRED)
    target_link_libraries(main PUBLIC outcome::hl)