1 # Copyright (C) 2018-2020 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-error=unknown-warning-option -Wno-error=inconsistent-missing-override -Wno-error=pass-failed")
7 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=unknown-warning-option -Wno-error=inconsistent-missing-override -Wno-error=pass-failed")
10 function(build_with_lto)
16 set(CLDNN__OUTPUT_BIN_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
17 set(CLDNN__OUTPUT_LIB_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
18 if (ENABLE_TESTS AND ENABLE_CLDNN_TESTS)
19 set(CLDNN__INCLUDE_TESTS ON CACHE BOOL "" FORCE)
20 set(CLDNN__INCLUDE_CORE_INTERNAL_TESTS ON CACHE BOOL "" FORCE)
22 set(CLDNN__INCLUDE_TESTS OFF CACHE BOOL "" FORCE)
23 set(CLDNN__INCLUDE_CORE_INTERNAL_TESTS OFF CACHE BOOL "" FORCE)
25 set(CLDNN__INCLUDE_EXAMPLES OFF CACHE BOOL "" FORCE)
26 set(CLDNN__INCLUDE_TUTORIAL OFF CACHE BOOL "" FORCE)
28 set(CLDNN__ARCHITECTURE_TARGET "Windows64" CACHE STRING "" FORCE)
30 set(CLDNN__ARCHITECTURE_TARGET "Android64" CACHE STRING "" FORCE)
32 set(CLDNN__ARCHITECTURE_TARGET "Linux64" CACHE STRING "" FORCE)
35 add_subdirectory(clDNN)
38 function(ie_build_pugixml)
39 set(BUILD_TESTS_current ${BUILD_TESTS})
40 set(BUILD_TESTS OFF CACHE BOOL "Build tests" FORCE)
41 add_subdirectory(pugixml)
42 set(BUILD_TESTS ${BUILD_TESTS_current} CACHE BOOL "Build tests" FORCE)
46 add_subdirectory(stb_lib)
48 add_subdirectory(fluid/modules/gapi)
50 target_include_directories(pugixml INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src>")
52 set_target_properties(pugixml ade fluid stb_image
53 PROPERTIES FOLDER thirdparty)
57 ie_developer_export_targets(ade fluid pugixml)
59 ie_developer_export_targets(pugixml_mt)
60 set_target_properties(pugixml_mt PROPERTIES FOLDER thirdparty)
67 set(SDL_cmake_included ON)