Skip to content

Commit e339d80

Browse files
committed
Add VulkanHpp as a required dependency and update module paths
- Include `VulkanHpp` in CMake configuration. - Update Vulkan module inclusion paths to use `${VulkanHpp_CPPM_DIR}` over `${Vulkan_INCLUDE_DIR}` for consistency.
1 parent 4f0418b commit e339d80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

attachments/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/CMake")
1010
find_package (glfw3 REQUIRED)
1111
find_package (glm REQUIRED)
1212
find_package (Vulkan REQUIRED)
13+
find_package (VulkanHpp REQUIRED)
1314
find_package (tinyobjloader REQUIRED)
1415
find_package (TinyGLTF REQUIRED)
1516
find_package (KTX REQUIRED)
@@ -36,16 +37,16 @@ target_sources(VulkanCppModule
3637
PUBLIC
3738
FILE_SET cxx_modules TYPE CXX_MODULES
3839
BASE_DIRS
39-
"${Vulkan_INCLUDE_DIR}"
40+
"${VulkanHpp_CPPM_DIR}"
4041
FILES
41-
"${Vulkan_INCLUDE_DIR}/vulkan/vulkan.cppm"
42+
"${VulkanHpp_CPPM_DIR}/vulkan/vulkan.cppm"
4243
)
4344

4445

4546
# Add the vulkan.cppm file directly as a source file
4647
target_sources(VulkanCppModule
4748
PRIVATE
48-
"${Vulkan_INCLUDE_DIR}/vulkan/vulkan.cppm"
49+
"${VulkanHpp_CPPM_DIR}/vulkan/vulkan.cppm"
4950
)
5051

5152
find_package(stb REQUIRED)

0 commit comments

Comments
 (0)