2017-11-03 14:18:09 +08:00
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
|
|
project(NONE)
|
|
|
|
|
2018-03-17 02:21:15 +08:00
|
|
|
if(CONFIG_I2C)
|
|
|
|
target_sources(app PRIVATE src/i2c_test.c)
|
|
|
|
endif()
|
|
|
|
if(CONFIG_GPIO)
|
|
|
|
target_sources(app PRIVATE src/gpio_test.c)
|
|
|
|
endif()
|
|
|
|
if(CONFIG_DMA)
|
|
|
|
target_sources(app PRIVATE src/dma_test.c)
|
|
|
|
endif()
|
|
|
|
if(CONFIG_I2S)
|
|
|
|
target_sources(app PRIVATE src/i2s_test.c)
|
|
|
|
endif()
|
|
|
|
if(CONFIG_USB)
|
|
|
|
target_sources(app PRIVATE src/test_hid.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main.c)
|