2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
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)
|