zephyr/tests/subsys/settings/functional/file/CMakeLists.txt
Marcin Niestroj 47c8db5e63 tests: settings: remove passing -DTEST_${TEST} from cmake
This feature is not used in most tests, as there is no logic in C code that
utilizes `#ifdef TEST_x` statement.

The only test that does that is `tests/subsys/settings/fcb/` where `#ifdef
TEST_LONG` is used, so leave that test case untouched.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-12-07 10:19:57 +00:00

14 lines
391 B
CMake

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(functional_file)
FILE(GLOB app_sources ../src/*.c)
target_sources(app PRIVATE ${app_sources})
target_sources(app PRIVATE settings_test_file.c)
zephyr_include_directories(
${ZEPHYR_BASE}/subsys/settings/include
${ZEPHYR_BASE}/subsys/settings/src
)