apps: split apps into examples and tests

Split the apps into tests and examples.
Those in the tests are used to verify library implementation
Those in the examples are used for demonstration.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
This commit is contained in:
Wendy Liang
2018-06-13 06:31:54 -07:00
committed by wjliang
parent 80ed7ff6fc
commit 4203dfde0e
21 changed files with 21 additions and 22 deletions

View File

@@ -7,28 +7,8 @@ set (APPS_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set (APPS_SHARE_DIR "${CMAKE_CURRENT_BINARY_DIR}/share")
option (WITH_FUNCTION_TEST_SUITE "Include function test suite" OFF)
option (WITH_LOAD_FW "Include loading firmware example" OFF)
add_subdirectory (machine)
add_subdirectory (system)
if (WITH_LINUXREMOTE)
add_subdirectory (linux_firmware_remoteproc_slave)
endif (WITH_LINUXREMOTE)
add_subdirectory (echo_test)
add_subdirectory (matrix_multiply)
if (WITH_LOAD_FW)
add_subdirectory (load_fw)
endif (WITH_LOAD_FW)
if (WITH_PROXY_APPS)
if (NOT WITH_REMOTEPROC_MASTER)
add_subdirectory (rpc_demo)
endif (NOT WITH_REMOTEPROC_MASTER)
endif (WITH_PROXY_APPS)
if (WITH_FUNCTION_TEST_SUITE)
add_subdirectory (func_test_suite)
endif (WITH_FUNCTION_TEST_SUITE)
add_subdirectory (tests)
add_subdirectory (examples)

View File

@@ -0,0 +1,12 @@
option (WITH_LOAD_FW "Include loading firmware example" OFF)
add_subdirectory (matrix_multiply)
if (WITH_LOAD_FW)
add_subdirectory (load_fw)
endif (WITH_LOAD_FW)
if (WITH_PROXY_APPS)
if (NOT WITH_REMOTEPROC_MASTER)
add_subdirectory (rpc_demo)
endif (NOT WITH_REMOTEPROC_MASTER)
endif (WITH_PROXY_APPS)

View File

@@ -0,0 +1,7 @@
option (WITH_FUNCTION_TEST_SUITE "Include function test suite" OFF)
add_subdirectory (echo_test)
if (WITH_FUNCTION_TEST_SUITE)
add_subdirectory (func_test_suite)
endif (WITH_FUNCTION_TEST_SUITE)