-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
32 lines (23 loc) · 695 Bytes
/
xmake.lua
File metadata and controls
32 lines (23 loc) · 695 Bytes
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
set_project("softchat")
add_rules("mode.debug", "mode.release")
target("client")
add_rules("qt.widgetapp")
add_frameworks("QtNetwork", "QtWebSockets")
add_files("client/**.cpp", "client/**.h")
add_includedirs("client", "client/gui")
if is_mode("debug") then
add_defines("DEBUG")
elseif is_mode("release") then
add_defines("RELEASE")
end
target_end()
target("server")
add_rules("qt.console")
add_files("server/**.cpp", "server/**.h")
add_frameworks("QtNetwork", "QtWebSockets", "QtSql")
if is_mode("debug") then
add_defines("DEBUG")
elseif is_mode("release") then
add_defines("RELEASE")
end
target_end()