blob: a53fd0d52ad60deb264c4b41d02566c9958c1ee4 [file] [log] [blame]
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -08001# Copyright 2020 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
Wyatt Hepler0a6f7632020-10-29 09:08:19 -070015include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
16
Ewout van Bekkuma0fc38c2022-01-14 09:15:53 -080017pw_auto_add_simple_module(pw_span
18 PUBLIC_DEPS
19 pw_polyfill
20 pw_polyfill.standard_library
21)
Ewout van Bekkum7a7bd502022-02-02 10:39:25 -080022target_include_directories(pw_span INTERFACE public_overrides)
Yuval Peressb8f3ad22021-10-26 22:55:27 -060023
24if(Zephyr_FOUND AND CONFIG_PIGWEED_SPAN)
25 zephyr_link_libraries(pw_span)
26endif()