muda provides CMake targets:

    find_package(muda CONFIG REQUIRED)
    target_link_libraries(main PRIVATE muda::muda)
    set_target_properties(main PROPERTIES
        CUDA_SEPARABLE_COMPILATION ON
        CUDA_RESOLVE_DEVICE_SYMBOLS ON
        CUDA_STANDARD_REQUIRED ON
        CUDA_STANDARD 20 # OR 17
    )
