-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.gn
More file actions
45 lines (40 loc) · 1 KB
/
BUILD.gn
File metadata and controls
45 lines (40 loc) · 1 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
# Main executable target
executable("websocket_client") {
configs = default_configs
configs += [ "//build/config:executable_config" ]
sources = [
"src/main.cpp",
"src/websocket_client.cpp",
"src/websocket_client_plain.cpp",
"src/cli_handler.cpp",
"src/message_handler.cpp",
]
include_dirs = [
"/usr/include",
"/usr/include/CLI11",
]
}
# Test target
executable("websocket_client_test") {
testonly = true
sources = [
# Test files
"test/websocket_client_test.cpp",
"test/websocket_client_plain_test.cpp",
"test/cli_handler_test.cpp",
"test/message_handler_test.cpp",
# Implementation files needed for testing
"src/websocket_client.cpp",
"src/websocket_client_plain.cpp",
"src/cli_handler.cpp",
"src/message_handler.cpp",
]
configs = default_configs
configs += [ "//build/config:executable_config" ]
include_dirs = [
"/usr/include",
"/usr/include/CLI11",
"/usr/include/gtest",
]
libs = [ "gtest", "gtest_main" ]
}