The package kompute provides CMake targets:

    find_package(kompute CONFIG REQUIRED)

    # Compiling shader
    # To add more shaders simply copy the vulkan_compile_shader command and replace it with your new shader
    vulkan_compile_shader(
        INFILE shader/my_shader.comp
        OUTFILE shader/my_shader.hpp
        NAMESPACE "shader")

    # Then add it to the library, so you can access it later in your code
    add_library(shader INTERFACE "shader/my_shader.hpp")
    target_include_directories(shader INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)

    target_link_libraries(main PRIVATE shader kompute::kompute)

