-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCMakeLists.txt
101 lines (86 loc) · 1.71 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
cmake_minimum_required(VERSION 3.7)
include(cmake/CPM.cmake)
include(cmake/Dependencies.cmake)
project(imaditor)
add_subdirectory(tests)
find_package(OpenGL REQUIRED)
add_library(nfd
nativefiledialog/src/nfd_common.c
nativefiledialog/src/nfd_win.cpp
)
target_include_directories(nfd
PRIVATE nativefiledialog/src/include
)
add_library(imgui
imgui/imgui.cpp
imgui/imgui_draw.cpp
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/backends/imgui_impl_glfw.cpp
imgui/backends/imgui_impl_opengl3.cpp
glad.c
)
target_include_directories(imgui
PRIVATE include
PRIVATE imgui
)
target_link_libraries(imgui
PRIVATE glfw
)
target_compile_definitions(imgui
PUBLIC IMGUI_USE_WCHAR32
)
add_executable(imaditor
actions/baseaction.cpp
actions/baseaction.h
actions/floodfillaction.cpp
actions/floodfillaction.h
actions/brushaction.cpp
actions/brushaction.h
actions/dropperaction.cpp
actions/dropperaction.h
actions/eraseaction.cpp
actions/eraseaction.h
main.cpp
program.cpp
program.h
shader.cpp
shader.h
log.cpp
log.h
tools.cpp
tools.h
imgui_tabs.cpp
imgui_tabs.h
image.cpp
image.h
images.cpp
images.h
layer.cpp
layer.h
brushes.cpp
brushes.h
glarraybuffer.cpp
glarraybuffer.h
glprogram.cpp
glprogram.h
state.h
)
target_include_directories(imaditor
PRIVATE include
PRIVATE imgui
PRIVATE nativefiledialog/src/include
)
target_link_libraries(imaditor
imgui
nfd
glfw
glm
${OPENGL_LIBRARIES}
)
target_compile_features(imaditor
PRIVATE cxx_auto_type
PRIVATE cxx_nullptr
PRIVATE cxx_range_for
PRIVATE cxx_thread_local
)