mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-02-06 02:54:32 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
12
apps/examples/CMakeLists.txt
Normal file
12
apps/examples/CMakeLists.txt
Normal 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)
|
||||
7
apps/tests/CMakeLists.txt
Normal file
7
apps/tests/CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user