CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # Copyright 2017 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. bits
  19. HDRS
  20. "bits.h"
  21. "internal/bits.h"
  22. COPTS
  23. ${ABSL_DEFAULT_COPTS}
  24. DEPS
  25. absl::core_headers
  26. PUBLIC
  27. )
  28. absl_cc_test(
  29. NAME
  30. bits_test
  31. SRCS
  32. "bits_test.cc"
  33. COPTS
  34. ${ABSL_TEST_COPTS}
  35. DEPS
  36. absl::bits
  37. absl::core_headers
  38. absl::random_random
  39. GTest::gmock_main
  40. )
  41. absl_cc_library(
  42. NAME
  43. int128
  44. HDRS
  45. "int128.h"
  46. SRCS
  47. "int128.cc"
  48. "int128_have_intrinsic.inc"
  49. "int128_no_intrinsic.inc"
  50. COPTS
  51. ${ABSL_DEFAULT_COPTS}
  52. DEPS
  53. absl::config
  54. absl::core_headers
  55. absl::bits
  56. PUBLIC
  57. )
  58. absl_cc_test(
  59. NAME
  60. int128_test
  61. SRCS
  62. "int128_stream_test.cc"
  63. "int128_test.cc"
  64. COPTS
  65. ${ABSL_TEST_COPTS}
  66. DEPS
  67. absl::int128
  68. absl::base
  69. absl::core_headers
  70. absl::hash_testing
  71. absl::type_traits
  72. GTest::gmock_main
  73. )
  74. # component target
  75. absl_cc_library(
  76. NAME
  77. numeric
  78. COPTS
  79. ${ABSL_DEFAULT_COPTS}
  80. DEPS
  81. absl::int128
  82. PUBLIC
  83. )
  84. absl_cc_library(
  85. NAME
  86. numeric_representation
  87. HDRS
  88. "internal/representation.h"
  89. COPTS
  90. ${ABSL_DEFAULT_COPTS}
  91. DEPS
  92. absl::config
  93. PUBLIC
  94. )