CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. cleanup_internal
  17. HDRS
  18. "internal/cleanup.h"
  19. COPTS
  20. ${ABSL_DEFAULT_COPTS}
  21. DEPS
  22. absl::base_internal
  23. absl::core_headers
  24. absl::utility
  25. PUBLIC
  26. )
  27. absl_cc_library(
  28. NAME
  29. cleanup
  30. HDRS
  31. "cleanup.h"
  32. COPTS
  33. ${ABSL_DEFAULT_COPTS}
  34. DEPS
  35. absl::cleanup_internal
  36. absl::config
  37. absl::core_headers
  38. PUBLIC
  39. )
  40. absl_cc_test(
  41. NAME
  42. cleanup_test
  43. SRCS
  44. "cleanup_test.cc"
  45. COPTS
  46. ${ABSL_TEST_COPTS}
  47. DEPS
  48. absl::cleanup
  49. absl::config
  50. absl::utility
  51. GTest::gmock_main
  52. )