-nnas_find_package(Protobuf QUIET)
-# TensorFlowSource package is used to use ~.proto files
-nnas_find_package(TensorFlowSource EXACT 1.12 QUIET)
-
-if(NOT Protobuf_FOUND)
- return()
-endif(NOT Protobuf_FOUND)
-
-if(NOT TensorFlowSource_FOUND)
+if(NOT TARGET mio_tf)
return()
-endif(NOT TensorFlowSource_FOUND)
-
-add_subdirectory(proto)
+endif(NOT TARGET mio_tf)
file(GLOB_RECURSE SOURCES "src/*.cpp")
file(GLOB_RECURSE TESTS "src/*.test.cpp")
add_library(moco_tf_frontend SHARED ${SOURCES})
target_include_directories(moco_tf_frontend PRIVATE src)
target_include_directories(moco_tf_frontend PUBLIC include)
-target_link_libraries(moco_tf_frontend PUBLIC moco_tf_proto)
target_link_libraries(moco_tf_frontend PUBLIC loco)
target_link_libraries(moco_tf_frontend PUBLIC moco_lang)
target_link_libraries(moco_tf_frontend PUBLIC moco_import)
+target_link_libraries(moco_tf_frontend PUBLIC mio_tf)
target_link_libraries(moco_tf_frontend PRIVATE bino)
target_link_libraries(moco_tf_frontend PRIVATE fipe)
target_link_libraries(moco_tf_frontend PRIVATE locop)
+++ /dev/null
-# Minimal Protocol Buffer specification for GraphDef file (.pb) encoding/decoding
-unset(PROTO_FILES)
-list(APPEND PROTO_FILES tensorflow/core/framework/versions.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/resource_handle.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/types.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/tensor.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/tensor_shape.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/attr_value.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/op_def.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/node_def.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/function.proto)
-list(APPEND PROTO_FILES tensorflow/core/framework/graph.proto)
-
-Protobuf_Generate(GRAPHDEF_PROTO
- "${CMAKE_CURRENT_BINARY_DIR}/generated"
- "${TensorFlowSource_DIR}"
- ${PROTO_FILES})
-
-add_library(moco_tf_proto STATIC ${GRAPHDEF_PROTO_SOURCES})
-set_target_properties(moco_tf_proto PROPERTIES POSITION_INDEPENDENT_CODE ON)
-target_include_directories(moco_tf_proto PUBLIC ${GRAPHDEF_PROTO_INCLUDE_DIRS})
-target_link_libraries(moco_tf_proto PUBLIC libprotobuf)
require("moco-log")
require("pepper-strcast")
require("locomotiv")
+require("mio-tf")
require("plier-tf")
require("locoex-customop")
require("logo")