Introduce nnkit_support_tflite-1.7 target (#2804)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 10 Jan 2019 04:46:55 +0000 (13:46 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 10 Jan 2019 04:46:55 +0000 (13:46 +0900)
This target allows clients to specify the version of tensorflow lite that
they want to use.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/nnkit/libs/support/tflite/CMakeLists.txt

index 2749d8b..928e6c2 100644 (file)
@@ -6,8 +6,10 @@ endif(NOT TensorFlowLite_FOUND)
 
 file(GLOB_RECURSE SOURCES "src/*.cpp")
 
-add_library(nnkit_support_tflite STATIC ${SOURCES})
-set_target_properties(nnkit_support_tflite PROPERTIES POSITION_INDEPENDENT_CODE ON)
-target_include_directories(nnkit_support_tflite PUBLIC include)
-target_link_libraries(nnkit_support_tflite nnkit_intf_backend)
-target_link_libraries(nnkit_support_tflite tensorflowlite-1.7)
+add_library(nnkit_support_tflite-1.7 STATIC ${SOURCES})
+set_target_properties(nnkit_support_tflite-1.7 PROPERTIES POSITION_INDEPENDENT_CODE ON)
+target_include_directories(nnkit_support_tflite-1.7 PUBLIC include)
+target_link_libraries(nnkit_support_tflite-1.7 nnkit_intf_backend)
+target_link_libraries(nnkit_support_tflite-1.7 tensorflowlite-1.7)
+
+add_library(nnkit_support_tflite ALIAS nnkit_support_tflite-1.7)