Commit Graph

2 Commits

Author SHA1 Message Date
Wyatt Hepler
a6a7cb2bde CMake build: pw_add_test updates; fix C builds
- In pw_add_test, require the name argument and accept a source list.
  This is more consistent with GN and Bazel.
- Make some compile options C++-only.

Change-Id: I5c11bcf5fb35c11fe6c332034c95ca6ad9203429
2020-01-07 16:21:28 -08:00
Wyatt Hepler
0fbcdfc3cd 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
2020-01-04 01:05:46 +00:00