forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (61 loc) · 1.65 KB
/
CMakeLists.txt
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
# Temporary comment-outed for compilation
#compile_proto_to_cpp (api.proto)
#compile_proto_to_grpc_cpp(api_service.proto)
compile_proto_to_cpp(block.proto)
compile_proto_to_cpp(primitive.proto)
compile_proto_to_cpp(commands.proto)
compile_proto_to_cpp(queries.proto)
compile_proto_to_cpp(responses.proto)
compile_proto_to_grpc_cpp(endpoint.proto)
compile_proto_to_grpc_cpp(peer_service.proto)
compile_proto_to_grpc_cpp(yac.proto)
compile_proto_to_grpc_cpp(ordering.proto)
compile_proto_to_grpc_cpp(loader.proto)
add_dependencies(commandsproto_h primitiveproto_h)
add_dependencies(queriesproto_h primitiveproto_h)
add_dependencies(blockproto_h commandsproto_h)
add_dependencies(responsesproto_h blockproto_h)
add_dependencies(responsesproto_h primitiveproto_h)
add_dependencies(endpointproto_h blockproto_h)
add_dependencies(endpointproto_h queriesproto_h)
add_dependencies(endpointproto_h responsesproto_h)
add_dependencies(orderingproto_h blockproto_h)
add_dependencies(loaderproto_h blockproto_h)
add_library(schema
block.pb.cc
commands.pb.cc
primitive.pb.cc
queries.pb.cc
responses.pb.cc
)
target_link_libraries(schema
protobuf
)
add_library(endpoint
endpoint.pb.cc
endpoint.grpc.pb.cc
)
target_link_libraries(endpoint
protobuf
grpc
grpc++
grpc++_reflection
)
add_library(peer_service_grpc
peer_service.grpc.pb.cc
peer_service.grpc.pb.h
peer_service.pb.cc
peer_service.pb.h
)
target_link_libraries(peer_service_grpc
protobuf
grpc++
)
add_library(loader_grpc
loader.pb.cc
loader.grpc.pb.cc
)
target_link_libraries(loader_grpc
protobuf
grpc++
)