blob: 54fd914bcf197c8cd66aa8449a9d8d95608a86c0 [file] [log] [blame]
Jim Flynnbbfe6032020-07-20 16:57:44 +01001#
2# Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5
Jim Flynnbbfe6032020-07-20 16:57:44 +01006 set(pipeCommon_sources)
7 list(APPEND pipeCommon_sources
8 CommandHandlerFunctor.cpp
9 CommandHandlerKey.cpp
10 CommandHandlerRegistry.cpp
11 CommonProfilingUtils.cpp
Jim Flynnc454ac92022-03-16 18:43:18 +000012 CounterDirectory.cpp
Jim Flynn9c85b412022-03-16 00:27:43 +000013 LabelsAndEventClasses.cpp
Jim Flynn6c9f17d2022-03-10 23:13:01 +000014 Logging.cpp
Jim Flynnbbfe6032020-07-20 16:57:44 +010015 NetworkSockets.cpp
16 PacketVersionResolver.cpp
Jim Flynn77b284e2022-03-13 20:53:35 +000017 Processes.cpp
Nikhil Raj77fe76b2021-06-09 14:55:32 +010018 SwTrace.cpp
Jim Flynn9c85b412022-03-16 00:27:43 +000019 Threads.cpp)
Jim Flynnbbfe6032020-07-20 16:57:44 +010020
21 include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include)
22 include_directories(${PROJECT_SOURCE_DIR}/common/include)
23
Jim Flynnbbfe6032020-07-20 16:57:44 +010024 # will only build a static version of this common code
25 # to simplify the build. No extra .so file to deploy to boards etc.
26 add_library_ex(pipeCommon STATIC ${pipeCommon_sources})
Jim Flynn870b96c2022-03-25 21:24:56 +000027 target_link_libraries(pipeCommon fmt)
Jim Flynnbbfe6032020-07-20 16:57:44 +010028
Rob Hughesc013bc82021-07-14 09:31:31 +010029 target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL")
30
Derek Lambertieac4adb2020-08-25 13:05:59 +010031 # install the target
32 install(
33 TARGETS pipeCommon
34 EXPORT armnn-targets
35 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
36 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
37 )