-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
46 lines (32 loc) · 913 Bytes
/
xmake.lua
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
set_xmakever("2.5.6")
set_project("bunch_rename")
set_version("0.0.0")
set_defaultmode("debug")
add_rules("mode.debug", "mode.release")
set_languages("cxx17")
set_symbols("debug", "edit")
add_requires("tclap 1.4.0-rc1") -- latest version at the time
if is_plat("linux") or is_plat("mingw") then
add_links("stdc++fs")
end
if is_mode("release") then
set_optimize("fastest")
end
target("cli")
set_kind("binary")
set_basename("brn")
add_files("cli/**.cpp")
-- add_headerfiles("cli/**.hpp")
add_packages("tclap")
add_deps("lib")
target("lib")
set_kind("static")
add_files("lib/src/**.cpp")
add_headerfiles("lib/include/**.hpp")
add_headerfiles("lib/src/**.hpp")
add_includedirs("lib/include/", {public = true})
target("lib_tests")
set_kind("binary")
add_files("lib/tests/**.cpp")
add_headerfiles("lib/tests/**.hpp")
add_deps("lib")