blob: 31ff5086e1d3e657fd10dc4c1a1f7f5906fbfb7f [file] [log] [blame]
Jim Flynn0dcef532022-06-14 10:58:23 +01001#
2# Copyright © 2018-2022 Arm Ltd and Contributors. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
Jim Flynne195a042022-04-12 17:19:28 +01005if (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 Eilerse38c4182021-09-02 13:12:11 +01009
Jim Flynne195a042022-04-12 17:19:28 +010010 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()
telsoa01c577f2c2018-08-31 09:22:23 +010033endif()