-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
54 lines (45 loc) · 1.4 KB
/
Copy pathxmake.lua
File metadata and controls
54 lines (45 loc) · 1.4 KB
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
-- xmake.lua
set_xmakever("3.0.0")
set_project("ctui_project")
set_version("1.0.0")
set_languages("c++20")
add_requires(
"notcurses++",
{
system = true,
configs = { pkg_config = true }
}
)
-------------------------------------------------------------------------------
-- nctui shared library
-------------------------------------------------------------------------------
target("nctui")
set_kind("shared")
add_packages("notcurses++")
-- {public = true} macht die Modul-Schnittstellen für abhängige Targets sichtbar.
add_files("src/*.mpp", {public = true})
add_files("src/widgets/*.mpp", {public = true})
add_includedirs("src", {public = true})
-------------------------------------------------------------------------------
-- examples
-------------------------------------------------------------------------------
target("simple_example")
set_kind("binary")
add_deps("nctui")
add_packages("notcurses++")
add_files("examples/simple.cpp")
target("mainloop_example")
set_kind("binary")
add_deps("nctui")
add_packages("notcurses++")
add_files("examples/mainloop.cpp")
target("menu_example")
set_kind("binary")
add_deps("nctui")
add_packages("notcurses++")
add_files("examples/menu.cpp")
target("tui_example")
set_kind("binary")
add_deps("nctui")
add_packages("notcurses++")
add_files("examples/tui.cpp")