Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 3b7a52d

Browse files
authored
feat: add BigQuery proto library (#23)
1 parent 0432a87 commit 3b7a52d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ set(GOOGLEAPIS_CPP_PROTO_FILES
7373
"google/bigtable/admin/v2/table.proto"
7474
"google/bigtable/v2/bigtable.proto"
7575
"google/bigtable/v2/data.proto"
76+
"google/cloud/bigquery/v2/model_reference.proto"
77+
"google/cloud/bigquery/v2/standard_sql.proto"
78+
"google/cloud/bigquery/v2/model.proto"
79+
"google/cloud/bigquery/storage/v1beta1/read_options.proto"
80+
"google/cloud/bigquery/storage/v1beta1/storage.proto"
81+
"google/cloud/bigquery/storage/v1beta1/avro.proto"
82+
"google/cloud/bigquery/storage/v1beta1/table_reference.proto"
83+
"google/cloud/bigquery/storage/v1beta1/arrow.proto"
7684
"google/spanner/admin/database/v1/spanner_database_admin.proto"
7785
"google/spanner/admin/instance/v1/spanner_instance_admin.proto"
7886
"google/spanner/v1/keys.proto"
@@ -216,6 +224,26 @@ googleapis_cpp_add_library("google/devtools/cloudtrace/v2/tracing.proto"
216224
api_annotations_protos
217225
rpc_status_protos)
218226

227+
google_cloud_cpp_grpcpp_library(
228+
googleapis_cpp_cloud_bigquery_protos
229+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/v2/model_reference.proto"
230+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/v2/standard_sql.proto"
231+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/v2/model.proto"
232+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/storage/v1beta1/read_options.proto"
233+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/storage/v1beta1/storage.proto"
234+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/storage/v1beta1/avro.proto"
235+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/storage/v1beta1/table_reference.proto"
236+
"${GOOGLEAPIS_CPP_SOURCE}/google/cloud/bigquery/storage/v1beta1/arrow.proto"
237+
PROTO_PATH_DIRECTORIES
238+
"${GOOGLEAPIS_CPP_SOURCE}"
239+
"${PROTO_INCLUDE_DIR}")
240+
googleapis_cpp_set_version_and_alias(cloud_bigquery_protos)
241+
target_link_libraries(googleapis_cpp_cloud_bigquery_protos
242+
PUBLIC googleapis-c++::api_annotations_protos
243+
googleapis-c++::api_http_protos
244+
googleapis-c++::api_client_protos
245+
PRIVATE googleapis_cpp_common_flags)
246+
219247
google_cloud_cpp_grpcpp_library(
220248
googleapis_cpp_bigtable_protos
221249
"${GOOGLEAPIS_CPP_SOURCE}/google/bigtable/admin/v2/bigtable_instance_admin.proto"
@@ -265,6 +293,7 @@ include(GNUInstallDirs)
265293

266294
set(googleapis_cpp_installed_libraries_list
267295
googleapis_cpp_bigtable_protos
296+
googleapis_cpp_cloud_bigquery_protos
268297
googleapis_cpp_spanner_protos
269298
googleapis_cpp_longrunning_operations_protos
270299
googleapis_cpp_api_http_protos
@@ -360,6 +389,7 @@ set(GOOGLE_CLOUD_CPP_PC_DESCRIPTION
360389
# need to add the separator ourselves.
361390
string(CONCAT GOOGLE_CLOUD_CPP_PC_REQUIRES
362391
"googleapis_cpp_bigtable_protos"
392+
" googleapis_cpp_bigquery_protos"
363393
" googleapis_cpp_iam_v1_iam_policy_protos"
364394
" googleapis_cpp_iam_v1_options_protos"
365395
" googleapis_cpp_iam_v1_policy_protos"

0 commit comments

Comments
 (0)