zephyr/tests/unit/pot/CMakeLists.txt
Chris Friedt edb5ee1575 tests: unit: test for Power-of-Two utilities
Tests for Power-of-Two (PoT) utilities.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2023-02-22 19:14:05 +01:00

17 lines
441 B
CMake

# Copyright 2023 Meta
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(pot_test)
FILE(GLOB app_sources *.c *.cpp)
target_sources(testbinary PRIVATE ${app_sources})
# gcc
target_compile_options(testbinary PRIVATE -Wno-overflow)
# clang
target_compile_options(testbinary PRIVATE -Wno-shift-count-overflow -Wno-integer-overflow)