-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (32 loc) · 932 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.11)
project(VulkanWindow C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
find_package(Vulkan REQUIRED)
add_subdirectory(glfw)
include_directories(${GLFW_DIR}/deps)
set(IMGUI_DIR imgui/)
include_directories(imgui/ imgui/backends imgui/misc/cpp ..)
file(
GLOB
sources
source/main.cpp
source/application.cpp
source/application.hpp
imgui/imgui.cpp
imgui/imgui.h
imgui/imgui_draw.cpp
imgui/imgui_demo.cpp
imgui/imgui_internal.h
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/backends/imgui_impl_vulkan.cpp
imgui/backends/imgui_impl_vulkan.h
imgui/backends/imgui_impl_glfw.cpp
imgui/backends/imgui_impl_glfw.h)
add_executable(VulkanWindow)
target_sources(VulkanWindow PRIVATE ${sources})
target_link_libraries(VulkanWindow PUBLIC glfw Vulkan::Vulkan)
if(WIN32)
set_property(TARGET VulkanWindow PROPERTY WIN32_EXECUTABLE true)
endif()