CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # Copyright 2020 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. status
  19. HDRS
  20. "status.h"
  21. SRCS
  22. "internal/status_internal.h"
  23. "status.cc"
  24. "status_payload_printer.h"
  25. "status_payload_printer.cc"
  26. COPTS
  27. ${ABSL_DEFAULT_COPTS}
  28. DEPS
  29. absl::atomic_hook
  30. absl::config
  31. absl::core_headers
  32. absl::function_ref
  33. absl::raw_logging_internal
  34. absl::inlined_vector
  35. absl::stacktrace
  36. absl::symbolize
  37. absl::strings
  38. absl::cord
  39. absl::str_format
  40. absl::optional
  41. PUBLIC
  42. )
  43. absl_cc_test(
  44. NAME
  45. status_test
  46. SRCS
  47. "status_test.cc"
  48. COPTS
  49. ${ABSL_TEST_COPTS}
  50. DEPS
  51. absl::status
  52. absl::strings
  53. GTest::gmock_main
  54. )
  55. absl_cc_library(
  56. NAME
  57. statusor
  58. HDRS
  59. "statusor.h"
  60. SRCS
  61. "statusor.cc"
  62. "internal/statusor_internal.h"
  63. COPTS
  64. ${ABSL_DEFAULT_COPTS}
  65. DEPS
  66. absl::base
  67. absl::status
  68. absl::core_headers
  69. absl::raw_logging_internal
  70. absl::type_traits
  71. absl::strings
  72. absl::utility
  73. absl::variant
  74. PUBLIC
  75. )
  76. absl_cc_test(
  77. NAME
  78. statusor_test
  79. SRCS
  80. "statusor_test.cc"
  81. COPTS
  82. ${ABSL_TEST_COPTS}
  83. DEPS
  84. absl::status
  85. absl::statusor
  86. GTest::gmock_main
  87. )