third_party.pigweed.src/pw_compilation_testing/CMakeLists.txt
Wyatt Hepler 13018162ab pw_compilation_testing: Negative compilation testing
Support for defining tests that verify that compilation fails when it
should fail.

Fixes: b/234882063
Change-Id: If2dbf14a7bae63cc286bcc72a3dcc16c089eb891
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/42240
Reviewed-by: Keir Mierle <keir@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
2022-08-04 22:49:04 +00:00

24 lines
872 B
CMake

# Copyright 2022 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.
include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
# Negative compilation testing is not yet supported in CMake.
pw_add_module_library(pw_compilation_testing._pigweed_only_negative_compilation
HEADERS
public/pw_compilation_testing/negative_compilation.h
PUBLIC_INCLUDES
public
)