-
Notifications
You must be signed in to change notification settings - Fork 60
/
CMakeLists.txt
156 lines (124 loc) · 2.86 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
project(lemon-apps)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_compile_options($<$<C_COMPILER_ID:Clang>:-fcolor-diagnostics>)
add_compile_options(-Werror -Wall -Wextra -Wno-write-strings -Wno-missing-braces -Wno-unused-parameter)
add_compile_options(-march=x86-64-v2)
set(fileman_SRC
FileManager/main.cpp
)
set(lsh_SRC
LSh/main.cpp
)
set(shell_SRC
Shell/main.cpp
Shell/shell.cpp
Shell/menu.cpp
)
set(snake_SRC
Snake/main.cpp
)
set(terminal_SRC
Terminal/main.cpp
)
set(textedit_SRC
TextEdit/exttextbox.cpp
TextEdit/main.cpp
)
set(sysinfo_SRC
SysInfo/main.cpp
)
set(imgview_SRC
ImgView/main.cpp
)
set(run_SRC
Run/main.cpp
)
set(graphicstest_SRC
GraphicsTest/main.cpp
)
set(guitest_SRC
GUITest/main.cpp
)
set(lemonmonitor_SRC
LemonMonitor/main.cpp
)
set(jsondump_SRC
JSONDump/main.cpp
)
set(minesweeper_SRC
Minesweeper/main.cpp
)
set(steal_SRC
Steal/main.cpp
)
set(devicemanager_SRC
DeviceManager/main.cpp
)
set(tests_SRC
Tests/Main.cpp
)
set(audioplayer_SRC
AudioPlayer/AudioContext.cpp
AudioPlayer/Main.cpp
)
set(videoplayer_SRC
VideoPlayer/StreamContext.cpp
VideoPlayer/Main.cpp
)
set(welcome_SRC
Welcome/Main.cpp
)
add_link_options(-llemon -llemongui)
add_executable(fileman.lef ${fileman_SRC})
add_executable(shell.lef ${shell_SRC})
add_executable(snake.lef ${snake_SRC})
add_executable(terminal.lef ${terminal_SRC})
add_executable(textedit.lef ${textedit_SRC})
add_executable(imgview.lef ${imgview_SRC})
add_executable(sysinfo.lef ${sysinfo_SRC})
add_executable(gfxtest.lef ${graphicstest_SRC})
add_executable(guitest.lef ${guitest_SRC})
add_executable(run.lef ${run_SRC})
add_executable(lemonmonitor.lef ${lemonmonitor_SRC})
add_executable(jsondump.lef ${jsondump_SRC})
add_executable(minesweeper.lef ${minesweeper_SRC})
add_executable(devmgr.lef ${devicemanager_SRC})
add_executable(welcome.lef ${welcome_SRC})
add_executable(ipctest.lef IPCTest/main.cpp)
add_executable(sigtest.lef SignalTest/main.c)
add_executable(tests.lef ${tests_SRC})
add_executable(audioplayer.lef ${audioplayer_SRC})
add_executable(videoplayer.lef ${videoplayer_SRC})
target_link_options(audioplayer.lef PUBLIC
-lavcodec -lavformat -lavutil -lswresample -lswscale)
target_link_options(videoplayer.lef PUBLIC
-lavcodec -lavformat -lavutil -lswresample -lswscale)
add_executable(lsh ${lsh_SRC})
add_executable(steal ${steal_SRC})
target_link_options(steal PUBLIC -lssl -lcrypto)
install(TARGETS
fileman.lef
lsh
shell.lef
snake.lef
terminal.lef
textedit.lef
imgview.lef
sysinfo.lef
gfxtest.lef
guitest.lef
run.lef
lemonmonitor.lef
jsondump.lef
minesweeper.lef
steal
devmgr.lef
audioplayer.lef
videoplayer.lef
welcome.lef
ipctest.lef
sigtest.lef
tests.lef
)