CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Copyright 2019 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. bind_front
  19. SRCS
  20. "internal/front_binder.h"
  21. HDRS
  22. "bind_front.h"
  23. COPTS
  24. ${ABSL_DEFAULT_COPTS}
  25. DEPS
  26. absl::base_internal
  27. absl::compressed_tuple
  28. PUBLIC
  29. )
  30. absl_cc_test(
  31. NAME
  32. bind_front_test
  33. SRCS
  34. "bind_front_test.cc"
  35. COPTS
  36. ${ABSL_DEFAULT_COPTS}
  37. DEPS
  38. absl::bind_front
  39. absl::memory
  40. GTest::gmock_main
  41. )
  42. absl_cc_library(
  43. NAME
  44. function_ref
  45. SRCS
  46. "internal/function_ref.h"
  47. HDRS
  48. "function_ref.h"
  49. COPTS
  50. ${ABSL_DEFAULT_COPTS}
  51. DEPS
  52. absl::base_internal
  53. absl::core_headers
  54. absl::meta
  55. PUBLIC
  56. )
  57. absl_cc_test(
  58. NAME
  59. function_ref_test
  60. SRCS
  61. "function_ref_test.cc"
  62. COPTS
  63. ${ABSL_TEST_COPTS}
  64. DEPS
  65. absl::function_ref
  66. absl::memory
  67. absl::test_instance_tracker
  68. GTest::gmock_main
  69. )