-
Notifications
You must be signed in to change notification settings - Fork 31
/
cmake.toml
61 lines (49 loc) · 1.2 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
# Reference: https://build-cpp.github.io/cmkr/cmake-toml
[project]
name = "ttd-bindings"
[options]
TTD_BUILD_EXAMPLES = "root"
TTD_PYTHON_BINDINGS = "root"
[variables]
PYBIND11_FINDPYTHON = true
[fetch-content.pybind11]
condition = "TTD_PYTHON_BINDINGS"
git = "https://github.com/pybind/pybind11"
tag = "v2.10.3"
[template.pyd]
condition = "TTD_PYTHON_BINDINGS"
type = "shared"
add-function = "pybind11_add_module"
pass-sources = true
[template.example]
condition = "TTD_BUILD_EXAMPLES"
type = "executable"
link-libraries = ["TTD::TTD"]
[target.TTD]
type = "static"
alias = "TTD::TTD"
sources = [
"TTD/*.cpp",
"TTD/*.hpp",
"TTD/*.h",
]
include-directories = ["."]
[target.pyTTD]
type = "pyd"
sources = ["python-bindings/module.cpp"]
link-libraries = ["TTD::TTD"]
[target.example_api]
type = "example"
sources = ["example_api/main.cpp"]
[target.example_calltree]
type = "example"
sources = ["example_calltree/main.cpp"]
[target.example_cov]
type = "example"
sources = ["example_cov/main.cpp"]
[target.example_diff]
type = "example"
sources = ["example_diff/main.cpp"]
[target.example_tenet]
type = "example"
sources = ["example_tenet/main.cpp"]