Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | if(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 |
| 15 | SwTrace.cpp) |
| 16 | |
| 17 | include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 18 | include_directories(${PROJECT_SOURCE_DIR}/common/include) |
| 19 | |
| 20 | if(BUILD_UNIT_TESTS) |
| 21 | include_directories(${PROJECT_SOURCE_DIR}/src/profiling |
| 22 | ${PROJECT_SOURCE_DIR}/src/armnnUtils) |
| 23 | target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 24 | endif() |
| 25 | |
| 26 | # will only build a static version of this common code |
| 27 | # to simplify the build. No extra .so file to deploy to boards etc. |
| 28 | add_library_ex(pipeCommon STATIC ${pipeCommon_sources}) |
| 29 | |
Derek Lamberti | eac4adb | 2020-08-25 13:05:59 +0100 | [diff] [blame] | 30 | # install the target |
| 31 | install( |
| 32 | TARGETS pipeCommon |
| 33 | EXPORT armnn-targets |
| 34 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 35 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 36 | ) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 37 | endif() |