Finn Williams | 8a2b468 | 2020-02-26 10:25:26 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2020 Arm Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
Sadik Armagan | 6f86b69 | 2020-03-09 11:04:32 +0000 | [diff] [blame] | 6 | if(BUILD_TIMELINE_DECODER) |
| 7 | set(timelineDecoder_sources) |
| 8 | list(APPEND timelineDecoder_sources |
Finn Williams | 0c8cb99 | 2020-05-07 10:38:15 +0100 | [diff] [blame] | 9 | ${PROJECT_SOURCE_DIR}/include/armnn/profiling/ITimelineDecoder.hpp |
| 10 | TimelineCaptureCommandHandler.cpp |
| 11 | TimelineCaptureCommandHandler.hpp |
| 12 | JSONTimelineDecoder.cpp |
| 13 | JSONTimelineDecoder.hpp |
| 14 | TimelineDecoder.cpp |
| 15 | TimelineDecoder.hpp |
| 16 | TimelineDirectoryCaptureCommandHandler.cpp |
| 17 | TimelineDirectoryCaptureCommandHandler.hpp) |
Finn Williams | 8a2b468 | 2020-02-26 10:25:26 +0000 | [diff] [blame] | 18 | |
Finn Williams | 0c8cb99 | 2020-05-07 10:38:15 +0100 | [diff] [blame] | 19 | include_directories(${PROJECT_SOURCE_DIR}/src/profiling |
| 20 | ${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 21 | |
| 22 | if(BUILD_UNIT_TESTS) |
| 23 | target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/timelineDecoder) |
| 24 | endif() |
Finn Williams | 8a2b468 | 2020-02-26 10:25:26 +0000 | [diff] [blame] | 25 | |
Sadik Armagan | 6f86b69 | 2020-03-09 11:04:32 +0000 | [diff] [blame] | 26 | add_library_ex(timelineDecoder SHARED ${timelineDecoder_sources}) |
Finn Williams | 0c8cb99 | 2020-05-07 10:38:15 +0100 | [diff] [blame] | 27 | |
Sadik Armagan | 6f86b69 | 2020-03-09 11:04:32 +0000 | [diff] [blame] | 28 | set_target_properties(timelineDecoder PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) |
| 29 | set_target_properties(timelineDecoder PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) |
Finn Williams | 8a2b468 | 2020-02-26 10:25:26 +0000 | [diff] [blame] | 30 | |
Rob Hughes | b98032f | 2020-04-24 11:41:34 +0100 | [diff] [blame] | 31 | target_link_libraries(timelineDecoder armnn) |
| 32 | |
Sadik Armagan | 6f86b69 | 2020-03-09 11:04:32 +0000 | [diff] [blame] | 33 | install(TARGETS timelineDecoder |
| 34 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 35 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
| 36 | endif() |
| 37 | |
| 38 | |