-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
92 lines (75 loc) · 1.94 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
cmake_minimum_required (VERSION 2.8)
project (structs)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
third_party/inja/include
)
add_definitions("-std=c++14")
add_definitions(-DGTEST_HAS_TR1_TUPLE=1)
set(JSON_BuildTests OFF CACHE INTERNAL "")
add_subdirectory(third_party/json)
add_subdirectory(third_party/abseil-cpp)
add_library (structs_base_lib
structs/base/base_plugin.cc
structs/base/code_builder.cc
structs/base/utils.cc
)
target_link_libraries(structs_base_lib
glog
gflags
protobuf
protoc
absl::base
absl::synchronization
absl::strings
nlohmann_json::nlohmann_json
)
add_library (structs_lib
structs/structs.pb.cc
structs/bigquery/bigquery.pb.cc
structs/bigquery/bigquery_plugin.cc
structs/cassandra/cassandra.pb.cc
structs/cassandra/cassandra_plugin.cc
structs/cassandra/field_gen.cc
structs/cassandra/message_gen.cc
structs/cassandra/renderers/cql_file.cc
structs/cassandra/renderers/java_file.cc
structs/cassandra/renderers/java_helpers.cc
structs/cassandra/renderers/spark_java_file.cc
)
target_link_libraries(structs_lib
structs_base_lib
glog
gflags
protobuf
protoc
absl::base
absl::synchronization
absl::strings
absl::str_format
pthread
)
add_executable(protoc-gen-structs-bigquery-schema
structs/bigquery/protoc_gen_structs_bigquery_schema.cc
)
target_link_libraries (protoc-gen-structs-bigquery-schema
structs_lib
)
add_executable(protoc-gen-structs-cassandra-table
structs/cassandra/protoc_gen_structs_cassandra_table.cc
)
target_link_libraries (protoc-gen-structs-cassandra-table
structs_lib
)
add_executable(protoc-gen-structs-cassandra-java
structs/cassandra/protoc_gen_structs_cassandra_java.cc
)
target_link_libraries (protoc-gen-structs-cassandra-java
structs_lib
)
add_executable(protoc-gen-structs-cassandra-spark-java
structs/cassandra/protoc_gen_structs_cassandra_spark_java.cc
)
target_link_libraries (protoc-gen-structs-cassandra-spark-java
structs_lib
)