xref: /aosp_15_r20/external/pigweed/pw_containers/examples/CMakeLists.txt (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# 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, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15include("$ENV{PW_ROOT}/pw_build/pigweed.cmake")
16
17# Examples
18
19pw_add_test(pw_containers.examples.flat_map
20  PRIVATE_DEPS
21    pw_containers.flat_map
22  SOURCES
23    flat_map.cc
24)
25
26pw_add_test(pw_containers.examples.intrusive_forward_list
27  PRIVATE_DEPS
28    pw_containers.intrusive_forward_list
29  SOURCES
30    intrusive_forward_list.cc
31)
32
33pw_add_test(pw_containers.examples.intrusive_list
34  PRIVATE_DEPS
35    pw_containers.intrusive_list
36  SOURCES
37    intrusive_list.cc
38)
39
40pw_add_test(pw_containers.examples.intrusive_map
41  PRIVATE_DEPS
42    pw_containers.intrusive_map
43  SOURCES
44    intrusive_map.cc
45)
46
47pw_add_test(pw_containers.examples.intrusive_multimap
48  PRIVATE_DEPS
49    pw_containers.intrusive_multimap
50  SOURCES
51    intrusive_multimap.cc
52)
53
54pw_add_test(pw_containers.examples.multiple_containers
55  PRIVATE_DEPS
56    pw_containers.intrusive_list
57    pw_containers.intrusive_map
58    pw_result
59    pw_status
60  SOURCES
61    multiple_containers.cc
62)
63
64pw_add_test(pw_containers.examples.wrapped_iterator
65  PRIVATE_DEPS
66    pw_containers.wrapped_iterator
67  SOURCES
68    wrapped_iterator.cc
69)
70