CMakeLists.txt (1169B)
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 15 # Internal-only target, do not depend on directly. 16 absl_cc_library( 17 NAME 18 cleanup_internal 19 HDRS 20 "internal/cleanup.h" 21 COPTS 22 ${ABSL_DEFAULT_COPTS} 23 DEPS 24 absl::core_headers 25 absl::utility 26 PUBLIC 27 ) 28 29 absl_cc_library( 30 NAME 31 cleanup 32 HDRS 33 "cleanup.h" 34 COPTS 35 ${ABSL_DEFAULT_COPTS} 36 DEPS 37 absl::cleanup_internal 38 absl::config 39 absl::core_headers 40 PUBLIC 41 ) 42 43 absl_cc_test( 44 NAME 45 cleanup_test 46 SRCS 47 "cleanup_test.cc" 48 COPTS 49 ${ABSL_TEST_COPTS} 50 DEPS 51 absl::cleanup 52 absl::config 53 absl::utility 54 GTest::gmock_main 55 )