Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | if(BUILD_TF_LITE_PARSER) |
| 6 | set(armnn_tf_lite_parser_sources) |
| 7 | list(APPEND armnn_tf_lite_parser_sources |
| 8 | ../../include/armnnTfLiteParser/ITfLiteParser.hpp |
| 9 | TfLiteParser.hpp |
| 10 | TfLiteParser.cpp |
| 11 | ) |
| 12 | |
| 13 | add_library_ex(armnnTfLiteParser SHARED ${armnn_tf_lite_parser_sources}) |
| 14 | |
| 15 | include_directories(SYSTEM "${FLATBUFFERS_INCLUDE_PATH}") |
| 16 | set_target_properties(armnnTfLiteParser PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) |
| 17 | target_include_directories(armnnTfLiteParser PRIVATE ../armnn) |
| 18 | target_include_directories(armnnTfLiteParser PRIVATE ../armnnUtils) |
| 19 | target_include_directories(armnnTfLiteParser SYSTEM PRIVATE "${TF_LITE_SCHEMA_INCLUDE_PATH}") |
| 20 | |
| 21 | target_link_libraries(armnnTfLiteParser ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY}) |
| 22 | target_link_libraries(armnnTfLiteParser armnn ${FLATBUFFERS_LIBRARY}) |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 23 | |
| 24 | install(TARGETS armnnTfLiteParser |
Rob Hughes | 91e1d89 | 2019-08-23 10:11:58 +0100 | [diff] [blame] | 25 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 26 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 27 | endif() |