blob: e1b1a700572f54585a4351b52edb9f0e950c2b62 [file] [log] [blame]
Jim Flynn6217c3d2022-06-14 10:58:23 +01001#
Ryan OSheab5540542022-07-06 09:52:52 +01002# Copyright © 2018-2023 Arm Ltd and Contributors. All rights reserved.
Jim Flynn6217c3d2022-06-14 10:58:23 +01003# SPDX-License-Identifier: MIT
4#
Ryan OSheaa3dc95e2023-03-20 11:10:40 +00005if (NOT BUILD_BARE_METAL)
Jim Flynne195a042022-04-12 17:19:28 +01006 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()