summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/c_cpp/CMakeLists.txt10
-rw-r--r--common/c_cpp/vkutil.h5
2 files changed, 14 insertions, 1 deletions
diff --git a/common/c_cpp/CMakeLists.txt b/common/c_cpp/CMakeLists.txt
index 1e2cf1f..d629db3 100644
--- a/common/c_cpp/CMakeLists.txt
+++ b/common/c_cpp/CMakeLists.txt
@@ -106,4 +106,12 @@ if(DEMO_NEEDS_SDL3)
pkg_check_modules(sdl3 REQUIRED IMPORTED_TARGET sdl3)
target_link_libraries(common INTERFACE PkgConfig::sdl3)
endif()
-endif() \ No newline at end of file
+endif()
+
+# -----------------------------------------------------------------------------
+# Dependency: Vulkan
+# -----------------------------------------------------------------------------
+if(DEMO_NEEDS_VULKAN)
+ find_package(Vulkan REQUIRED)
+ target_link_libraries(common INTERFACE Vulkan::Vulkan)
+endif()
diff --git a/common/c_cpp/vkutil.h b/common/c_cpp/vkutil.h
new file mode 100644
index 0000000..89c7940
--- /dev/null
+++ b/common/c_cpp/vkutil.h
@@ -0,0 +1,5 @@
+#ifndef _DEMOS_VKUTIL_H_
+#define _DEMOS_VKUTIL_H_
+
+#endif // _DEMOS_VKUTIL_H_
+