2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-10 20:44:56 +08:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2020-05-29 08:58:50 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2018-10-25 22:54:09 +08:00
|
|
|
project(gpio_basic_api)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2020-11-02 04:45:08 +08:00
|
|
|
FILE(GLOB app_sources src/main.c src/test*.c)
|
2017-10-27 21:43:34 +08:00
|
|
|
target_sources(app PRIVATE ${app_sources})
|
2020-11-02 04:45:08 +08:00
|
|
|
target_sources_ifdef(CONFIG_GPIO_EMUL app PRIVATE src/gpio_emul_callback.c)
|