Jim Flynn | 6217c3d | 2022-06-14 10:58:23 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2018-2022 Arm Ltd and Contributors. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
Jim Flynn | e195a04 | 2022-04-12 17:19:28 +0100 | [diff] [blame] | 5 | if (NOT BUILD_BARE_METAL) |
| 6 | if(BUILD_SAMPLE_APP AND ARMNNREF) |
| 7 | add_executable(SimpleSample SimpleSample.cpp) |
| 8 | target_link_libraries(SimpleSample armnn ${CMAKE_THREAD_LIBS_INIT}) |
Jan Eilers | e38c418 | 2021-09-02 13:12:11 +0100 | [diff] [blame] | 9 | |
Jim Flynn | e195a04 | 2022-04-12 17:19:28 +0100 | [diff] [blame] | 10 | add_executable(AsyncExecutionSample AsyncExecutionSample.cpp) |
| 11 | target_link_libraries(AsyncExecutionSample armnn ${CMAKE_THREAD_LIBS_INIT}) |
| 12 | endif() |
| 13 | |
| 14 | if(BUILD_SAMPLE_APP AND SAMPLE_DYNAMIC_BACKEND) |
| 15 | add_executable(DynamicSample DynamicSample.cpp) |
| 16 | target_link_libraries(DynamicSample armnn ${CMAKE_THREAD_LIBS_INIT}) |
| 17 | endif() |
| 18 | |
| 19 | if(BUILD_SAMPLE_APP AND ARMCOMPUTECL) |
| 20 | add_executable(CustomMemoryAllocatorSample CustomMemoryAllocatorSample.cpp) |
| 21 | target_link_libraries(CustomMemoryAllocatorSample armnn ${CMAKE_THREAD_LIBS_INIT}) |
| 22 | endif() |
| 23 | |
| 24 | if(BUILD_SAMPLE_APP AND ARMNNREF) |
| 25 | add_executable(PreImportMemorySample PreImportMemorySample.cpp) |
| 26 | target_link_libraries(PreImportMemorySample armnn ${CMAKE_THREAD_LIBS_INIT}) |
| 27 | endif() |
| 28 | else() |
| 29 | if (ARMNNREF) |
| 30 | add_executable(BareMetalDeserializedGraph BareMetalDeserializedGraph.cpp) |
| 31 | target_link_libraries(BareMetalDeserializedGraph fmt pipeCommon pipeClient armnn) |
| 32 | endif() |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 33 | endif() |