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 | |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 6 | set(pipeCommon_sources) |
| 7 | list(APPEND pipeCommon_sources |
| 8 | CommandHandlerFunctor.cpp |
| 9 | CommandHandlerKey.cpp |
| 10 | CommandHandlerRegistry.cpp |
| 11 | CommonProfilingUtils.cpp |
Jim Flynn | c454ac9 | 2022-03-16 18:43:18 +0000 | [diff] [blame] | 12 | CounterDirectory.cpp |
Jim Flynn | 9c85b41 | 2022-03-16 00:27:43 +0000 | [diff] [blame] | 13 | LabelsAndEventClasses.cpp |
Jim Flynn | 6c9f17d | 2022-03-10 23:13:01 +0000 | [diff] [blame] | 14 | Logging.cpp |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 15 | NetworkSockets.cpp |
| 16 | PacketVersionResolver.cpp |
Jim Flynn | 77b284e | 2022-03-13 20:53:35 +0000 | [diff] [blame] | 17 | Processes.cpp |
Nikhil Raj | 77fe76b | 2021-06-09 14:55:32 +0100 | [diff] [blame] | 18 | SwTrace.cpp |
Jim Flynn | 9c85b41 | 2022-03-16 00:27:43 +0000 | [diff] [blame] | 19 | Threads.cpp) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 20 | |
| 21 | include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 22 | include_directories(${PROJECT_SOURCE_DIR}/common/include) |
| 23 | |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 24 | # 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 Flynn | 870b96c | 2022-03-25 21:24:56 +0000 | [diff] [blame] | 27 | target_link_libraries(pipeCommon fmt) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 28 | |
Rob Hughes | c013bc8 | 2021-07-14 09:31:31 +0100 | [diff] [blame] | 29 | target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL") |
| 30 | |
Derek Lamberti | eac4adb | 2020-08-25 13:05:59 +0100 | [diff] [blame] | 31 | # 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 | ) |