blob: ff379675b0eb0183a17c83e2a620d5a743b36340 [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
15project(Pigweed)
16
Wyatt Hepler0a6f7632020-10-29 09:08:19 -070017cmake_minimum_required(VERSION 3.16)
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080018
Wyatt Hepler1e1d4812021-01-21 15:46:13 -080019# The PW_ROOT environment variable should be set in bootstrap. If it is not set,
20# set it to this directory.
21if("$ENV{PW_ROOT}" STREQUAL "")
22 message("The PW_ROOT environment variable is not set; "
23 "using ${CMAKE_CURRENT_LIST_DIR} within CMake")
24 set(ENV{PW_ROOT} "${CMAKE_CURRENT_LIST_DIR}")
25endif()
26
Wyatt Heplera9e249d2020-11-18 09:40:49 -080027add_subdirectory(pw_assert EXCLUDE_FROM_ALL)
28add_subdirectory(pw_assert_basic EXCLUDE_FROM_ALL)
29add_subdirectory(pw_assert_log EXCLUDE_FROM_ALL)
30add_subdirectory(pw_base64 EXCLUDE_FROM_ALL)
31add_subdirectory(pw_blob_store EXCLUDE_FROM_ALL)
32add_subdirectory(pw_build EXCLUDE_FROM_ALL)
33add_subdirectory(pw_bytes EXCLUDE_FROM_ALL)
34add_subdirectory(pw_checksum EXCLUDE_FROM_ALL)
Alexei Frolove39af8d2020-12-30 14:55:09 -080035add_subdirectory(pw_chrono EXCLUDE_FROM_ALL)
36add_subdirectory(pw_chrono_stl EXCLUDE_FROM_ALL)
Wyatt Heplera9e249d2020-11-18 09:40:49 -080037add_subdirectory(pw_containers EXCLUDE_FROM_ALL)
38add_subdirectory(pw_cpu_exception EXCLUDE_FROM_ALL)
39add_subdirectory(pw_cpu_exception_armv7m EXCLUDE_FROM_ALL)
Alexei Frolovd3e5cb72021-01-08 13:08:45 -080040add_subdirectory(pw_hdlc EXCLUDE_FROM_ALL)
Wyatt Heplera9e249d2020-11-18 09:40:49 -080041add_subdirectory(pw_kvs EXCLUDE_FROM_ALL)
42add_subdirectory(pw_log EXCLUDE_FROM_ALL)
43add_subdirectory(pw_log_basic EXCLUDE_FROM_ALL)
44add_subdirectory(pw_log_tokenized EXCLUDE_FROM_ALL)
45add_subdirectory(pw_minimal_cpp_stdlib EXCLUDE_FROM_ALL)
46add_subdirectory(pw_polyfill EXCLUDE_FROM_ALL)
47add_subdirectory(pw_protobuf EXCLUDE_FROM_ALL)
48add_subdirectory(pw_preprocessor EXCLUDE_FROM_ALL)
49add_subdirectory(pw_random EXCLUDE_FROM_ALL)
50add_subdirectory(pw_result EXCLUDE_FROM_ALL)
51add_subdirectory(pw_rpc EXCLUDE_FROM_ALL)
52add_subdirectory(pw_span EXCLUDE_FROM_ALL)
53add_subdirectory(pw_status EXCLUDE_FROM_ALL)
54add_subdirectory(pw_stream EXCLUDE_FROM_ALL)
55add_subdirectory(pw_string EXCLUDE_FROM_ALL)
Alexei Frolove39af8d2020-12-30 14:55:09 -080056add_subdirectory(pw_sync EXCLUDE_FROM_ALL)
57add_subdirectory(pw_sync_stl EXCLUDE_FROM_ALL)
Wyatt Heplera9e249d2020-11-18 09:40:49 -080058add_subdirectory(pw_sys_io EXCLUDE_FROM_ALL)
59add_subdirectory(pw_sys_io_stdio EXCLUDE_FROM_ALL)
60add_subdirectory(pw_tokenizer EXCLUDE_FROM_ALL)
61add_subdirectory(pw_trace EXCLUDE_FROM_ALL)
62add_subdirectory(pw_unit_test EXCLUDE_FROM_ALL)
63add_subdirectory(pw_varint EXCLUDE_FROM_ALL)
Wyatt Heplerc9e51d22020-10-29 09:12:37 -070064
Alexei Froloveb94e962020-12-29 16:15:40 -080065add_subdirectory(targets/host EXCLUDE_FROM_ALL)
66
Wyatt Heplera9e249d2020-11-18 09:40:49 -080067add_subdirectory(third_party/nanopb EXCLUDE_FROM_ALL)
68
69add_custom_target(pw_apps)
Alexei Frolovd3e5cb72021-01-08 13:08:45 -080070add_dependencies(pw_apps pw_hdlc.rpc_example)