1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
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")
10 add_subdirectory(pugixml)
11 export(TARGETS pugixml NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets.cmake")
12 export(TARGETS pugixml NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake")
14 add_subdirectory(stb_lib)
18 set(CLDNN__OUTPUT_BIN_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
19 set(CLDNN__OUTPUT_LIB_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
20 if (ENABLE_TESTS AND ENABLE_CLDNN_TESTS)
21 set(CLDNN__INCLUDE_TESTS ON CACHE BOOL "" FORCE)
22 set(CLDNN__INCLUDE_CORE_INTERNAL_TESTS ON CACHE BOOL "" FORCE)
24 set(CLDNN__INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
25 set(CLDNN__INCLUDE_CORE_INTERNAL_TESTS OFF CACHE BOOL "" FORCE)
27 set(CLDNN__INCLUDE_EXAMPLES OFF CACHE BOOL "" FORCE)
28 set(CLDNN__INCLUDE_TUTORIAL OFF CACHE BOOL "" FORCE)
30 set(CLDNN__ARCHITECTURE_TARGET "Windows64" CACHE STRING "" FORCE)
32 set(CLDNN__ARCHITECTURE_TARGET "Linux64" CACHE STRING "" FORCE)
35 add_subdirectory(clDNN)
38 if (UNIX OR APPLE AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
39 remove_definitions(-fvisibility=hidden)
40 add_definitions(-fvisibility=default)
45 if (UNIX OR APPLE AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
46 remove_definitions(-fvisibility=default)
47 add_definitions(-fvisibility=hidden)
54 add_subdirectory("${IE_MAIN_SOURCE_DIR}/thirdparty/fluid/modules/gapi")