diff --git a/ci/etc/expected_install_directories b/ci/etc/expected_install_directories index a7f2a2b3b6c83..eeadaf1e80847 100644 --- a/ci/etc/expected_install_directories +++ b/ci/etc/expected_install_directories @@ -1228,6 +1228,7 @@ ./lib64/cmake/google_cloud_cpp_bigquery ./lib64/cmake/google_cloud_cpp_bigquery_mocks ./lib64/cmake/google_cloud_cpp_bigtable +./lib64/cmake/google_cloud_cpp_bigtable_mocks ./lib64/cmake/google_cloud_cpp_billing ./lib64/cmake/google_cloud_cpp_billing_mocks ./lib64/cmake/google_cloud_cpp_binaryauthorization diff --git a/ci/verify_current_targets/CMakeLists.txt b/ci/verify_current_targets/CMakeLists.txt index a3adb341f91b2..c1ec5884592a7 100644 --- a/ci/verify_current_targets/CMakeLists.txt +++ b/ci/verify_current_targets/CMakeLists.txt @@ -26,6 +26,7 @@ set(ga_libraries # cmake-format: sort bigquery bigtable + bigtable_mocks iam iam_mocks logging diff --git a/generator/standalone_main.cc b/generator/standalone_main.cc index cde111d1f4d37..a3b6749e4c279 100644 --- a/generator/standalone_main.cc +++ b/generator/standalone_main.cc @@ -20,7 +20,6 @@ #include "generator/internal/scaffold_generator.h" #include "google/cloud/internal/absl_str_cat_quiet.h" #include "google/cloud/internal/absl_str_join_quiet.h" -#include "google/cloud/internal/algorithm.h" #include "google/cloud/log.h" #include "google/cloud/status_or.h" #include "absl/flags/flag.h" @@ -167,13 +166,10 @@ int WriteInstallDirectories( } auto const lib = LibraryName(product_path); install_directories.push_back("./lib64/cmake/google_cloud_cpp_" + lib); - // TODO(#5782) - install mocks in libs with handwritten CMakeLists.txt - auto const handwritten_cmake = std::set{{ - "bigtable", - "compute", - "storage", - }}; - if (!google::cloud::internal::Contains(handwritten_cmake, lib)) { + // Note that storage does not have a public-facing mocks library. Only + // GCS+gRPC does. + // TODO(#5782) - install mocks for compute + if (lib != "compute" && lib != "storage") { install_directories.push_back("./lib64/cmake/google_cloud_cpp_" + lib + "_mocks"); } diff --git a/google/cloud/bigtable/CMakeLists.txt b/google/cloud/bigtable/CMakeLists.txt index c0155804b4cbd..94edc6f986cd1 100644 --- a/google/cloud/bigtable/CMakeLists.txt +++ b/google/cloud/bigtable/CMakeLists.txt @@ -512,8 +512,6 @@ install( google_cloud_cpp_install_headers("google_cloud_cpp_bigtable" "include/google/cloud/bigtable") -google_cloud_cpp_install_headers("google_cloud_cpp_bigtable_mocks" - "include/google/cloud/bigtable") google_cloud_cpp_add_pkgconfig( bigtable @@ -537,3 +535,5 @@ install( "${CMAKE_CURRENT_BINARY_DIR}/google_cloud_cpp_bigtable-config-version.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/google_cloud_cpp_bigtable" COMPONENT google_cloud_cpp_development) + +google_cloud_cpp_install_mocks(bigtable "Google Cloud Bigtable")