When using an IDE (e.g. Eclipse, Qt Creator), the project name gets
displayed. This greatly simplifies the navigation between projects when
having many of them open at the same time. Naming multiple projects
"NONE" defeats this functionality.
This patch tries to use sensible project names while not duplicating
too much of what is already represented in the path. This is done by
using the name of the directory the relevant CMakeLists.txt file is
stored in. To ensure unique project names, small, manual adjustments
have been done.
See also 7eabab2f5d ("samples, tests: Use semi-accurate project names")
Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
18 lines
429 B
CMake
18 lines
429 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(functional_nvs)
|
|
|
|
# The code is in the library common to several tests.
|
|
target_sources(app PRIVATE placeholder.c)
|
|
|
|
add_subdirectory(../src func_test_bindir)
|
|
target_link_libraries(app PRIVATE settings_func_test)
|
|
|
|
if(TEST)
|
|
target_compile_definitions(app PRIVATE
|
|
-DTEST_${TEST}
|
|
)
|
|
endif()
|