-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
59 lines (54 loc) · 1.39 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
project("Core")
find_package(GLFW3 3.3 REQUIRED)
find_package(assimp REQUIRED)
find_package(glm REQUIRED)
pkg_check_modules(SPDLOG REQUIRED IMPORTED_TARGET spdlog)
find_path(stb_image_INCLUDE_DIRS NAMES stb_image.h PATH_SUFFIXES include include/stb stb REQUIRED)
add_definitions(-DGLFW_INCLUDE_NONE)
add_definitions(-DIMGUI_IMPL_VULKAN_USE_VOLK)
set(
IMGUI_SOURCES
vendor/imgui/imgui.cpp
vendor/imgui/imgui_demo.cpp
vendor/imgui/imgui_draw.cpp
vendor/imgui/imgui_tables.cpp
vendor/imgui/imgui_widgets.cpp
vendor/imgui/misc/cpp/imgui_stdlib.cpp
vendor/imgui/backends/imgui_impl_glfw.cpp
vendor/imgui/backends/imgui_impl_vulkan.cpp
)
add_library(
Vixen
STATIC
${IMGUI_SOURCES}
Window.cpp
Camera.cpp
CommandBuffer.h
CommandPoolUsage.h
IndexFormat.h
PrimitiveTopology.h
VertexAttribute.h
AttachmentInfo.h
LoadAction.h
StoreAction.h
Rectangle.h
BufferUsage.h
exception/ShaderLinkFailedException.h
Application.h
Samples.h
shader/ShaderResources.h
)
target_link_libraries(
Vixen
PUBLIC
glfw
assimp::assimp
glm::glm
PkgConfig::SPDLOG
)
target_include_directories(
Vixen
PUBLIC
vendor/imgui
${stb_image_INCLUDE_DIRS}
)