CMakeLists.txt 1.1 KB

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