forked from dds-bridge/dds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
51 lines (47 loc) · 867 Bytes
/
BUILD.bazel
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
# Import of DoubleDummySolver from github
cc_library(
name = "dds",
srcs = glob([
"src/*.cpp",
"src/*.h",
"include/portab.h",
]),
hdrs = glob(["include/dll.h"]),
copts = ["-Wno-all"],
linkopts = ["-lm"],
visibility = ["//visibility:public"],
)
TEST_MAINS = [
"test/dtest.cpp",
"test/itest.cpp",
]
cc_library(
name = "tests",
srcs = glob(
[
"test/*.cpp",
"test/*.h",
],
exclude = TEST_MAINS,
),
copts = ["-Wno-all"],
linkopts = ["-lm"],
visibility = ["//visibility:public"],
deps = [":dds"],
)
cc_binary(
name = "dtest",
srcs = ["test/dtest.cpp"],
deps = [
"dds",
":tests",
],
)
cc_binary(
name = "itest",
srcs = ["test/itest.cpp"],
deps = [
"dds",
":tests",
],
)