--- /dev/null
+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)
+ return()
+endif(NOT TensorFlowSource_FOUND)
+
+message(STATUS "Build mio-tf: TRUE")
+
+# 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(mio_tf STATIC ${GRAPHDEF_PROTO_SOURCES})
+set_target_properties(mio_tf PROPERTIES POSITION_INDEPENDENT_CODE ON)
+target_include_directories(mio_tf PUBLIC ${GRAPHDEF_PROTO_INCLUDE_DIRS})
+target_link_libraries(mio_tf PUBLIC ${GRAPHDEF_PROTO_LIBRARIES})
+
+if(NOT ENABLE_TEST)
+ return()
+endif(NOT ENABLE_TEST)
+
+nnas_find_package(GTest REQUIRED)
+
+file(GLOB_RECURSE TESTS "src/*.test.cpp")
+
+GTest_AddTest(mio_tf_test ${TESTS})
+target_include_directories(mio_tf_test PRIVATE src)
+target_link_libraries(mio_tf_test mio_tf)
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <tensorflow/core/framework/graph.pb.h>
+
+#include <gtest/gtest.h>
+
+TEST(MIO_TF_Test, instance)
+{
+ tensorflow::GraphDef gd;
+ tensorflow::NodeDef nd;
+
+ SUCCEED();
+}