Merge pull request #129 from asuhov/2019-r1
[platform/upstream/dldt.git] / inference-engine / thirdparty / CMakeLists.txt
1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
3 #
4
5 if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
6   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option -Wno-inconsistent-missing-override -Wno-pass-failed")
7   set(CMAKE_CC_FLAGS "${CMAKE_CC_FLAGS} -Wno-unknown-warning-option -Wno-inconsistent-missing-override -Wno-pass-failed")
8 endif()
9
10 add_subdirectory(pugixml)
11 export(TARGETS pugixml NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets.cmake")
12
13 add_subdirectory(stb_lib)
14 add_subdirectory(ade)
15
16 if (ENABLE_CLDNN)
17     set(CLDNN__OUTPUT_BIN_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
18     set(CLDNN__OUTPUT_LIB_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
19     set(CLDNN__INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
20     set(CLDNN__INCLUDE_CORE_INTERNAL_TESTS OFF CACHE BOOL "" FORCE)
21     set(CLDNN__INCLUDE_EXAMPLES OFF CACHE BOOL "" FORCE)
22     set(CLDNN__INCLUDE_TUTORIAL OFF CACHE BOOL "" FORCE)
23     if (WIN32)
24         set(CLDNN__ARCHITECTURE_TARGET "Windows64" CACHE STRING "" FORCE)
25     else()
26         set(CLDNN__ARCHITECTURE_TARGET "Linux64" CACHE STRING "" FORCE)
27     endif()
28
29     add_subdirectory(clDNN)
30 endif()
31
32 if(ENABLE_MKL_DNN)
33     include(mkldnn.cmake)
34 endif()
35
36 add_subdirectory("${IE_MAIN_SOURCE_DIR}/thirdparty/fluid/modules/gapi")