blob: 6979275c4918f59cb4dfc55795dc286475583836 [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
6if(BUILD_TIMELINE_DECODER)
7 set(pipeCommon_sources)
8 list(APPEND pipeCommon_sources
9 CommandHandlerFunctor.cpp
10 CommandHandlerKey.cpp
11 CommandHandlerRegistry.cpp
12 CommonProfilingUtils.cpp
13 NetworkSockets.cpp
14 PacketVersionResolver.cpp
Nikhil Raj77fe76b2021-06-09 14:55:32 +010015 SwTrace.cpp
16 LabelsAndEventClasses.cpp)
Jim Flynnbbfe6032020-07-20 16:57:44 +010017
18 include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include)
19 include_directories(${PROJECT_SOURCE_DIR}/common/include)
20
21 if(BUILD_UNIT_TESTS)
22 include_directories(${PROJECT_SOURCE_DIR}/src/profiling
23 ${PROJECT_SOURCE_DIR}/src/armnnUtils)
24 target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include)
25 endif()
26
27 # will only build a static version of this common code
28 # to simplify the build. No extra .so file to deploy to boards etc.
29 add_library_ex(pipeCommon STATIC ${pipeCommon_sources})
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 )
Jim Flynnbbfe6032020-07-20 16:57:44 +010038endif()