[nnc] Fix buid target name (#2740)
authorРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Thu, 20 Dec 2018 16:50:27 +0000 (19:50 +0300)
committerEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Thu, 20 Dec 2018 16:50:27 +0000 (19:50 +0300)
* correct target name in CMakeLists.txt

Signed-off-by: Roman Rusyaev <r.rusyaev@samsung.com>
contrib/nnc/tests/import/CMakeLists.txt
contrib/nnc/unittests/tflite_frontend/CMakeLists.txt
contrib/nnc/utils/tflite_dot_dumper/CMakeLists.txt

index 1ca2461..cf1667b 100644 (file)
@@ -9,9 +9,9 @@
 # These executables are not executed anywhere because it is not yet decided
 # how to store large files (in this case, files with models), and how to run all system tests.
 # As soon as it is decided, model files should be added, as well as the code that runs the tests.
-if (TARGET tflite_import)
+if (TARGET tflite_importer)
   add_executable(system_test_import_tflite tflite.cpp ${OPTIONS_SRC})
-  target_link_libraries(system_test_import_tflite PRIVATE nnc_support tflite_import)
+  target_link_libraries(system_test_import_tflite PRIVATE nnc_support tflite_importer)
   target_include_directories(system_test_import_tflite PRIVATE ${NNC_TFLITE_FRONTEND_DIR})
 endif()
 
index d5f413a..c0f4b61 100644 (file)
@@ -12,7 +12,7 @@ if (NNC_FRONTEND_TFLITE_ENABLED AND NOT ${test_create_failed})
   add_definitions(-DTFLITE_TEST_DIR="${CMAKE_CURRENT_BINARY_DIR}/")
   add_nnc_unit_test(nnc_tflite_frontend_test ${TESTS} ${OPTIONS_SRC})
   if (TARGET nnc_tflite_frontend_test)
-    nncc_target_link_libraries(nnc_tflite_frontend_test tflite_import nnc_support nnc_core )
+    nncc_target_link_libraries(nnc_tflite_frontend_test tflite_importer nnc_support nnc_core )
     target_include_directories(nnc_tflite_frontend_test PRIVATE ${NNC_TFLITE_FRONTEND_DIR})
   endif()
 endif()
index 101430d..5bba679 100644 (file)
@@ -1,9 +1,9 @@
-if (NOT TARGET tflite_import)
+if (NOT TARGET tflite_importer)
   return ()
 endif()
 
 add_executable(tflite_import_example sanity_check.cpp ${OPTIONS_SRC})
 
 target_link_libraries(tflite_import_example PUBLIC tflite_schema)
-target_link_libraries(tflite_import_example PRIVATE tflite_import)
+target_link_libraries(tflite_import_example PRIVATE tflite_importer)
 target_include_directories(tflite_import_example PRIVATE ${NNC_TFLITE_FRONTEND_DIR})