CMakeLists.txt 1.12 KB
Newer Older
1
# ******************************************************************************
2
# Copyright 2017-2020 Intel Corporation
3
#
4 5 6
# 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
7
#
8
#     http://www.apache.org/licenses/LICENSE-2.0
9
#
10 11 12 13 14
# 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.
15
# ******************************************************************************
16

17
add_definitions(-DIN_NGRAPH_LIBRARY)
Robert Kimball's avatar
Robert Kimball committed
18

19 20
include_directories(ngraph)

21
add_subdirectory(resource)
22

23 24 25 26 27
# This must be added before any backend that uses MLIR
if (NGRAPH_MLIR_ENABLE)
    add_subdirectory(${NGRAPH_MLIR_SOURCE_DIR})
endif()

28
add_subdirectory(ngraph)
29 30 31 32 33 34 35

if (NGRAPH_TOOLS_ENABLE)
    add_subdirectory(tools)
    message(STATUS "tools enabled")
else()
    message(STATUS "tools disabled")
endif()