zephyr/tests/ztest/mock/CMakeLists.txt

16 lines
379 B
CMake
Raw Normal View History

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1)
if(BOARD STREQUAL unit_testing)
list(APPEND SOURCES src/main.c)
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
project(mock)
else()
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mock)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
endif()