CMakeLists.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #
  2. # Copyright 2018 The Abseil Authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. absl_cc_library(
  17. NAME
  18. hash
  19. HDRS
  20. "hash.h"
  21. SRCS
  22. "internal/hash.cc"
  23. "internal/hash.h"
  24. COPTS
  25. ${ABSL_DEFAULT_COPTS}
  26. DEPS
  27. absl::city
  28. absl::config
  29. absl::core_headers
  30. absl::endian
  31. absl::fixed_array
  32. absl::meta
  33. absl::int128
  34. absl::strings
  35. absl::optional
  36. absl::variant
  37. absl::utility
  38. absl::low_level_hash
  39. PUBLIC
  40. )
  41. absl_cc_library(
  42. NAME
  43. hash_testing
  44. HDRS
  45. "hash_testing.h"
  46. COPTS
  47. ${ABSL_TEST_COPTS}
  48. DEPS
  49. absl::spy_hash_state
  50. absl::meta
  51. absl::strings
  52. absl::variant
  53. GTest::gmock
  54. TESTONLY
  55. )
  56. absl_cc_test(
  57. NAME
  58. hash_test
  59. SRCS
  60. "hash_test.cc"
  61. COPTS
  62. ${ABSL_TEST_COPTS}
  63. DEPS
  64. absl::cord_test_helpers
  65. absl::hash
  66. absl::hash_testing
  67. absl::core_headers
  68. absl::flat_hash_set
  69. absl::spy_hash_state
  70. absl::meta
  71. absl::int128
  72. GTest::gmock_main
  73. )
  74. absl_cc_library(
  75. NAME
  76. spy_hash_state
  77. HDRS
  78. "internal/spy_hash_state.h"
  79. COPTS
  80. ${ABSL_DEFAULT_COPTS}
  81. DEPS
  82. absl::hash
  83. absl::strings
  84. absl::str_format
  85. TESTONLY
  86. )
  87. absl_cc_library(
  88. NAME
  89. city
  90. HDRS
  91. "internal/city.h"
  92. SRCS
  93. "internal/city.cc"
  94. COPTS
  95. ${ABSL_DEFAULT_COPTS}
  96. DEPS
  97. absl::config
  98. absl::core_headers
  99. absl::endian
  100. )
  101. absl_cc_test(
  102. NAME
  103. city_test
  104. SRCS
  105. "internal/city_test.cc"
  106. COPTS
  107. ${ABSL_TEST_COPTS}
  108. DEPS
  109. absl::city
  110. GTest::gmock_main
  111. )
  112. absl_cc_library(
  113. NAME
  114. low_level_hash
  115. HDRS
  116. "internal/low_level_hash.h"
  117. SRCS
  118. "internal/low_level_hash.cc"
  119. COPTS
  120. ${ABSL_DEFAULT_COPTS}
  121. DEPS
  122. absl::bits
  123. absl::config
  124. absl::endian
  125. absl::int128
  126. )
  127. absl_cc_test(
  128. NAME
  129. low_level_hash_test
  130. SRCS
  131. "internal/low_level_hash_test.cc"
  132. COPTS
  133. ${ABSL_TEST_COPTS}
  134. DEPS
  135. absl::low_level_hash
  136. absl::strings
  137. GTest::gmock_main
  138. )