aboutsummaryrefslogtreecommitdiff
path: root/pw_string
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-01-02 07:53:39 -0800
committerCQ Bot Account <commit-bot@chromium.org>2020-01-04 01:05:46 +0000
commit0fbcdfc3cdecf59996dcf078ad3da47b315eb793 (patch)
treebee2a9d5cc8ff57b5d5bc62d724f8983cf9baf96 /pw_string
parent7b8528e85d2a475a0d87f94d598c6183a08c2d5c (diff)
downloadpigweed-0fbcdfc3cdecf59996dcf078ad3da47b315eb793.tar.gz
Basic CMake build
- Automatically add simple modules with pw_auto_add_simmple_module. - Define libraries in a module with pw_add_module_library. - Define tests and test groups with pw_add_test and pw_add_test_to_groups. - Tests execute with full Ninja dependency resolution, as in the GN build. - Add CMakeLists.txt for existing modules. - Currently there is no support for targets, but these libraries would be trivial to integrate with an existing CMake build. Change-Id: If73d8b61bce88f91141737eb773f1ebce3a7676e
Diffstat (limited to 'pw_string')
-rw-r--r--pw_string/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/pw_string/CMakeLists.txt b/pw_string/CMakeLists.txt
new file mode 100644
index 000000000..24c48aa10
--- /dev/null
+++ b/pw_string/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Copyright 2020 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+pw_auto_add_simple_module(pw_string
+ PUBLIC_DEPS
+ pw_preprocessor
+ pw_span
+ pw_status
+)