blob: 983fe30d4ec069d6b835150fb77df4cfe6b209d2 [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
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080017pw_add_module_library(pw_unit_test
18 SOURCES
19 framework.cc
20 PUBLIC_DEPS
Wyatt Heplera55d4c72020-01-16 10:26:04 -080021 pw_polyfill
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080022 pw_preprocessor
23 pw_string
24)
25
26# pw_unit_test overrides the gtest/gtest.h header.
27target_include_directories(pw_unit_test PUBLIC public_overrides)
28
29pw_add_module_library(pw_unit_test.main
30 SOURCES
Keir Mierleda0bccb2020-01-17 13:51:35 -080031 simple_printing_main.cc
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080032 simple_printing_event_handler.cc
33 PUBLIC_DEPS
34 pw_unit_test
35 PRIVATE_DEPS
36 pw_preprocessor
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080037 pw_string
Armando Montanezf7a5a742020-03-02 14:58:59 -080038 pw_sys_io
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080039)