1 # ******************************************************************************
2 # Copyright 2017-2020 Intel Corporation
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ******************************************************************************
25 performance_counter.hpp
26 dynamic/dynamic_backend.cpp
27 dynamic/dynamic_backend.hpp
34 pass/dyn_elimination.cpp
35 pass/dyn_elimination.hpp
36 pass/fused_op_decomposition.cpp
37 pass/fused_op_decomposition.hpp
38 pass/implicit_broadcast_elimination.cpp
39 pass/implicit_broadcast_elimination.hpp
42 pass/opset0_downgrade.cpp
43 pass/opset0_downgrade.hpp
44 pass/opset1_downgrade.cpp
45 pass/opset1_downgrade.hpp
46 pass/opset1_upgrade.cpp
47 pass/opset1_upgrade.hpp
48 pass/shape_relevance.cpp
49 pass/shape_relevance.hpp
52 disable_deprecated_warnings()
54 add_library(ngraph_backend SHARED ${SRC})
56 if(COMMAND ie_faster_build)
57 ie_faster_build(ngraph_backend
62 target_compile_definitions(ngraph_backend
64 SHARED_LIB_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}"
65 SHARED_LIB_SUFFIX="${IE_BUILD_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}"
67 target_link_libraries(ngraph_backend PUBLIC ngraph
71 target_link_libraries(ngraph_backend PRIVATE dl)
73 target_compile_definitions(ngraph_backend PRIVATE BACKEND_DLL_EXPORTS)
74 target_include_directories(ngraph_backend PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
76 add_subdirectory(interpreter)