CMakeLists.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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::raw_logging_internal
  33. absl::inlined_vector
  34. absl::stacktrace
  35. absl::symbolize
  36. absl::strings
  37. absl::cord
  38. absl::str_format
  39. absl::optional
  40. PUBLIC
  41. )
  42. absl_cc_test(
  43. NAME
  44. status_test
  45. SRCS
  46. "status_test.cc"
  47. COPTS
  48. ${ABSL_TEST_COPTS}
  49. DEPS
  50. absl::status
  51. absl::strings
  52. gmock_main
  53. )
  54. absl_cc_library(
  55. NAME
  56. statusor
  57. HDRS
  58. "statusor.h"
  59. SRCS
  60. "statusor.cc"
  61. "internal/statusor_internal.h"
  62. COPTS
  63. ${ABSL_DEFAULT_COPTS}
  64. DEPS
  65. absl::core_headers
  66. absl::raw_logging_internal
  67. absl::type_traits
  68. absl::strings
  69. absl::utility
  70. absl::variant
  71. PUBLIC
  72. )
  73. absl_cc_test(
  74. NAME
  75. statusor_test
  76. SRCS
  77. "statusor_test.cc"
  78. COPTS
  79. ${ABSL_TEST_COPTS}
  80. DEPS
  81. absl::status
  82. absl::statusor
  83. gmock_main
  84. )