2019-11-04 18:46:10 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (c) 2019 Nordic Semiconductor ASA
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2020-05-29 08:58:50 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2019-11-04 18:46:10 +08:00
|
|
|
project(littlefs)
|
|
|
|
|
|
|
|
add_subdirectory(../src littlefs_test_bindir)
|
|
|
|
target_link_libraries(app PRIVATE settings_littlefs_test)
|
|
|
|
|
|
|
|
# The code is in the library common to several tests.
|
|
|
|
target_sources(app PRIVATE placeholder.c)
|
|
|
|
|
|
|
|
if(TEST)
|
|
|
|
target_compile_definitions(app PRIVATE
|
|
|
|
-DTEST_${TEST}
|
|
|
|
)
|
|
|
|
endif()
|