-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathcmake.toml
89 lines (71 loc) · 2.06 KB
/
cmake.toml
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
# Reference: https://build-cpp.github.io/cmkr/cmake-toml
[project]
name = "sdkgenny"
[options]
SDKGENNY_BUILD_EXAMPLES = false
SDKGENNY_BUILD_PARSER = false
[conditions]
build-examples = "SDKGENNY_BUILD_EXAMPLES"
build-parser = "SDKGENNY_BUILD_PARSER"
[fetch-content.PEGTL]
condition = "build-parser"
git = "https://github.com/taocpp/PEGTL.git"
tag = "3.2.7"
shallow = true
[target.sdkgenny]
type = "static"
headers = ["include/**.hpp"]
sources = ["src/**.cpp"]
include-directories = ["include/"]
compile-features = ["cxx_std_23"]
alias = "sdkgenny::sdkgenny"
msvc.private-compile-options = ["/permissive-", "/W4", "/w14640"]
clang.private-compile-options = ["-Wall", "-Wextra", "-Wshadow", "-Wnon-virtual-dtor", "-pedantic"]
gcc.private-compile-options = ["-Wall", "-Wextra", "-Wshadow", "-Wnon-virtual-dtor", "-pedantic"]
[template.example]
condition = "build-examples"
type = "executable"
link-libraries = ["sdkgenny"]
[target.example_car]
type = "example"
sources = ["examples/car.cpp"]
[target.example_bitfield]
type = "example"
sources = ["examples/bitfield.cpp"]
[target.example_typename]
type = "example"
sources = ["examples/typename.cpp"]
[target.example_usage]
type = "example"
sources = ["examples/usage.cpp"]
[target.example_sdk]
type = "example"
sources = ["examples/sdk.cpp"]
[target.example_dummydata]
type = "example"
sources = ["examples/dummydata.cpp"]
[target.example_badname]
type = "example"
sources = ["examples/badname.cpp"]
[target.example_constants]
type = "example"
sources = ["examples/constants.cpp"]
[target.example_multiple_inheritance]
type = "example"
sources = ["examples/multiple_inheritance.cpp"]
[target.example_parser]
condition = "build-parser"
type = "example"
sources = ["examples/parser.cpp"]
link-libraries = ["taocpp::pegtl"]
[target.example_generictype]
type = "example"
sources = ["examples/generictype.cpp"]
[target.example_childstruct]
type = "example"
sources = ["examples/childstruct.cpp"]
[target.example_nestedstruct]
condition = "build-parser"
type = "example"
sources = ["examples/nestedstruct.cpp"]
link-libraries = ["taocpp::pegtl"]