diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-18 14:59:19 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-18 15:45:45 +0100 |
commit | bccc3450179402ea0cf608171833dbc4f297056f (patch) | |
tree | 26395c63d76518886f28a0778c7233f7526e9e0a /src/armnnTfLiteParser | |
parent | ed25e0e8932895686ffb5166966beb88ddcbd410 (diff) | |
download | armnn-bccc3450179402ea0cf608171833dbc4f297056f.tar.gz |
Github #275 Generate versionned libraries
* Improved parsing of the ArmNN's version at compile time
* Reading the version directly from the Version.hpp file, to
make sure not to break any build made with a different
build system than CMake (or Ninja)
* The version macro is set in the Version.hpp just like before,
so setting it from the command line is no longer necessary
!android-nn-driver:2126
Signed-off-by: Guillaume Gardet <guillaume.gardet@arm.com>
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I0820094607734d283ded030e4ded0ae6f5889c86
Diffstat (limited to 'src/armnnTfLiteParser')
-rwxr-xr-x | src/armnnTfLiteParser/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/armnnTfLiteParser/CMakeLists.txt b/src/armnnTfLiteParser/CMakeLists.txt index 17d4cf68c2..ae60079ab6 100755 --- a/src/armnnTfLiteParser/CMakeLists.txt +++ b/src/armnnTfLiteParser/CMakeLists.txt @@ -21,6 +21,8 @@ if(BUILD_TF_LITE_PARSER) target_link_libraries(armnnTfLiteParser ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY}) target_link_libraries(armnnTfLiteParser armnn ${FLATBUFFERS_LIBRARY}) + set_target_properties(armnnTfLiteParser PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) + install(TARGETS armnnTfLiteParser LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |