Commit bc2138d1 authored by Artur Wojcik's avatar Artur Wojcik Committed by Robert Kimball

onnxifi: initial CMakeLists.txt and libonnx import (#1473)

Signed-off-by: 's avatarArtur Wojcik <artur.wojcik@intel.com>
parent cd318cae
......@@ -95,6 +95,7 @@ option(NGRAPH_DEX_ONLY "Build CPU DEX without codegen" FALSE)
if (NGRAPH_ONNX_IMPORT_ENABLE)
option(NGRAPH_USE_SYSTEM_PROTOBUF "Use system provided Protobuf shared object" FALSE)
option(NGRAPH_ONNXIFI_ENABLE "Enable ONNX Interface for Framework Integration" TRUE)
endif()
#-----------------------------------------------------------------------------------------------
......@@ -224,7 +225,7 @@ endif()
if (NGRAPH_ONNX_IMPORT_ENABLE)
if (NOT NGRAPH_USE_SYSTEM_PROTOBUF)
include (cmake/external_protobuf.cmake)
include(cmake/external_protobuf.cmake)
else()
find_package(Protobuf 2.6.1 REQUIRED)
endif()
......
......@@ -16,6 +16,9 @@
if (NGRAPH_ONNX_IMPORT_ENABLE)
add_subdirectory(onnx_import)
if (NGRAPH_ONNXIFI_ENABLE)
add_subdirectory(onnxifi)
endif()
endif()
# ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# 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.
# ******************************************************************************
add_library(onnxifi-ngraph SHARED onnxifi.cpp)
target_link_libraries(onnxifi-ngraph PRIVATE ngraph)
set(ONNXIFI_VERSION ${NGRAPH_VERSION})
set(ONNXIFI_ABI_VERSION 1)
set_target_properties(onnxifi-ngraph PROPERTIES VERSION ${ONNXIFI_VERSION} SOVERSION ${ONNXIFI_ABI_VERSION})
install(TARGETS onnxifi-ngraph DESTINATION ${NGRAPH_INSTALL_LIB})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment