So I have this file structure. It's the workspace I was told to clone in the documentation, then I created my project's folder called "Result3D", inside I created a CMake folder and inside I moved the FindVulkan.cmake file from attachments/CMake/. Then, I created a CMakeLists.txt file inside my project folder, and pasted this code inside:
find_package (Vulkan REQUIRED)
# set up Vulkan C++ module (enabled when ENABLE_CPP20_MODULE=ON)
add_library(VulkanCppModule)
add_library(Vulkan::cppm ALIAS VulkanCppModule)
target_compile_definitions(VulkanCppModule PUBLIC
VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1
VULKAN_HPP_NO_STRUCT_CONSTRUCTORS=1
)
target_include_directories(VulkanCppModule PRIVATE "${Vulkan_INCLUDE_DIR}")
target_link_libraries(VulkanCppModule PUBLIC Vulkan::Vulkan)
set_target_properties(VulkanCppModule PROPERTIES CXX_STANDARD 20)
target_sources(VulkanCppModule
PUBLIC
FILE_SET cxx_modules TYPE CXX_MODULES
BASE_DIRS "${Vulkan_INCLUDE_DIR}"
FILES "${Vulkan_INCLUDE_DIR}/vulkan/vulkan.cppm"
)