1# 2# Copyright © 2020 Arm Ltd and Contributors. All rights reserved. 3# SPDX-License-Identifier: MIT 4# 5 6if(BUILD_TIMELINE_DECODER) 7 set(timelineDecoderJson_sources) 8 list(APPEND timelineDecoderJson_sources 9 JSONTimelineDecoder.cpp 10 JSONTimelineDecoder.hpp) 11 12 include_directories(${PROJECT_SOURCE_DIR}/src/profiling 13 ${PROJECT_SOURCE_DIR}/profiling/common/include 14 ${PROJECT_SOURCE_DIR}/profiling/client/include 15 ${PROJECT_SOURCE_DIR}/profiling/server/include/timelineDecoder 16 ${PROJECT_SOURCE_DIR}/src/armnnUtils) 17 18 if(BUILD_UNIT_TESTS) 19 target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/timelineDecoder) 20 endif() 21 22 add_library_ex(timelineDecoderJson SHARED ${timelineDecoderJson_sources}) 23 24 set_target_properties(timelineDecoderJson PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) 25 set_target_properties(timelineDecoderJson PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) 26 27 target_link_libraries(timelineDecoderJson armnn) 28 29 install(TARGETS timelineDecoderJson 30 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 31 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) 32endif() 33