Publishing R3
[platform/upstream/dldt.git] / inference-engine / thirdparty / CMakeLists.txt
1 # Copyright (C) 2018 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
3 #
4 add_subdirectory(pugixml)
5 add_subdirectory(stb_lib)
6 add_subdirectory(ade)
7
8 if (ENABLE_CLDNN AND ENABLE_CLDNN_BUILD)
9     include(CheckCXXCompilerFlag)
10     CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
11     if(NOT COMPILER_SUPPORTS_CXX14)
12         message(FATAL_ERROR "Compiler should support C++14 for clDNN building. Please update compiler.")
13     endif()
14     set(CLDNN__OUTPUT_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
15     set(CLDNN__INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
16     set(CLDNN__INCLUDE_EXAMPLES OFF CACHE BOOL "" FORCE)
17     set(CLDNN__INCLUDE_TUTORIAL OFF CACHE BOOL "" FORCE)
18     set(CLDNN__INCLUDE_GENERIC_SAMPLE OFF CACHE BOOL "" FORCE)
19     remove_definitions(-fvisibility=default)
20     add_subdirectory(clDNN)
21     add_definitions(-fvisibility=default)
22 endif()
23
24 include(mkldnn.cmake)