2018-08-13 15:46:42 +08:00
|
|
|
cmake_minimum_required(VERSION 3.8.2)
|
2018-10-04 17:47:28 +08:00
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
macro(set_conf_file)
|
2018-10-04 17:47:28 +08:00
|
|
|
if(EXISTS ${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf)
|
|
|
|
set(CONF_FILE "${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf")
|
|
|
|
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf)
|
|
|
|
set(CONF_FILE
|
|
|
|
"prj.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf")
|
2017-10-27 21:43:34 +08:00
|
|
|
else()
|
2018-10-04 17:47:28 +08:00
|
|
|
set(CONF_FILE "prj.conf")
|
2017-10-27 21:43:34 +08:00
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
|
|
project(NONE)
|
|
|
|
|
2018-10-04 17:47:28 +08:00
|
|
|
target_sources(app PRIVATE
|
2017-10-27 21:43:34 +08:00
|
|
|
src/shell_utils.c
|
|
|
|
src/zperf_session.c
|
|
|
|
src/zperf_shell.c
|
|
|
|
src/zperf_udp_receiver.c
|
|
|
|
src/zperf_udp_uploader.c
|
|
|
|
src/zperf_tcp_receiver.c
|
|
|
|
src/zperf_tcp_uploader.c
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(app PRIVATE
|
|
|
|
$ENV{ZEPHYR_BASE}/subsys/net/ip
|
|
|
|
$ENV{ZEPHYR_BASE}/samples/task_profiler/profiler/src
|
|
|
|
)
|