1# 2# Copyright © 2018-2023 Arm Ltd and Contributors. All rights reserved. 3# SPDX-License-Identifier: MIT 4# 5if (NOT BUILD_BARE_METAL AND NOT EXECUTE_NETWORK_STATIC) 6 if(BUILD_SAMPLE_APP AND ARMNNREF) 7 add_executable(SimpleSample SimpleSample.cpp) 8 target_link_libraries(SimpleSample armnn ${CMAKE_THREAD_LIBS_INIT}) 9 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() 28else() 29 if (ARMNNREF) 30 add_executable(BareMetalDeserializedGraph BareMetalDeserializedGraph.cpp) 31 target_link_libraries(BareMetalDeserializedGraph fmt pipeCommon pipeClient armnn) 32 endif() 33endif() 34