aboutsummaryrefslogtreecommitdiff
path: root/pw_assert_basic
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-10-29 09:08:19 -0700
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2020-11-04 22:31:07 +0000
commit0a6f763b129bb4db36553699de39d3ce545c52ca (patch)
tree0cf415edea3ce66e729fc8a118bf2a67c357870b /pw_assert_basic
parent0be2cd5c9a7e6afcc74a4265c2ec63816ae2c5f0 (diff)
downloadpigweed-0a6f763b129bb4db36553699de39d3ce545c52ca.tar.gz
CMake: Revamp CMake build
- Define CMake cache variables (similar to gn args) for facade backends. - Create simple initial toolchain files for GCC and Clang. - Misc updates to pigweed.cmake and pw_build/CMakeLists.txt. - Add or expand various CMakeLists.txt files. - Watch CMake files in watch.py to support using CMake in pw watch. Change-Id: I490d157485d02811a11f6a3589a0508ea1851f58 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/22840 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Keir Mierle <keir@google.com>
Diffstat (limited to 'pw_assert_basic')
-rw-r--r--pw_assert_basic/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/pw_assert_basic/CMakeLists.txt b/pw_assert_basic/CMakeLists.txt
index 7e6c46aef..ec2121ed4 100644
--- a/pw_assert_basic/CMakeLists.txt
+++ b/pw_assert_basic/CMakeLists.txt
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations under
# the License.
+include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
+
pw_auto_add_simple_module(pw_assert_basic
IMPLEMENTS_FACADE
pw_assert
@@ -20,9 +22,3 @@ pw_auto_add_simple_module(pw_assert_basic
pw_string
pw_sys_io
)
-
-target_include_directories(pw_assert_basic PUBLIC public_overrides)
-
-# TODO(hepler): Declare pw_assert_basic as the pw_assert backend for now.
-add_library(pw_assert.backend INTERFACE)
-target_link_libraries(pw_assert.backend INTERFACE pw_assert_basic)