CMakeLists.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Copyright 2021 The Abseil Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # https://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. absl_cc_library(
  15. NAME
  16. sample_recorder
  17. HDRS
  18. "internal/sample_recorder.h"
  19. COPTS
  20. ${ABSL_DEFAULT_COPTS}
  21. DEPS
  22. absl::base
  23. absl::synchronization
  24. )
  25. absl_cc_test(
  26. NAME
  27. sample_recorder_test
  28. SRCS
  29. "internal/sample_recorder_test.cc"
  30. COPTS
  31. ${ABSL_TEST_COPTS}
  32. DEPS
  33. absl::sample_recorder
  34. absl::time
  35. GTest::gmock_main
  36. )
  37. absl_cc_library(
  38. NAME
  39. exponential_biased
  40. SRCS
  41. "internal/exponential_biased.cc"
  42. HDRS
  43. "internal/exponential_biased.h"
  44. COPTS
  45. ${ABSL_DEFAULT_COPTS}
  46. DEPS
  47. absl::config
  48. absl::core_headers
  49. )
  50. absl_cc_test(
  51. NAME
  52. exponential_biased_test
  53. SRCS
  54. "internal/exponential_biased_test.cc"
  55. COPTS
  56. ${ABSL_TEST_COPTS}
  57. DEPS
  58. absl::exponential_biased
  59. absl::strings
  60. GTest::gmock_main
  61. )
  62. absl_cc_library(
  63. NAME
  64. periodic_sampler
  65. SRCS
  66. "internal/periodic_sampler.cc"
  67. HDRS
  68. "internal/periodic_sampler.h"
  69. COPTS
  70. ${ABSL_DEFAULT_COPTS}
  71. DEPS
  72. absl::core_headers
  73. absl::exponential_biased
  74. )
  75. absl_cc_test(
  76. NAME
  77. periodic_sampler_test
  78. SRCS
  79. "internal/periodic_sampler_test.cc"
  80. COPTS
  81. ${ABSL_TEST_COPTS}
  82. DEPS
  83. absl::core_headers
  84. absl::periodic_sampler
  85. GTest::gmock_main
  86. )