forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (41 loc) · 1.46 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
#
# Build common part
#
if (NOT ENABLE_INTEL_MYRIAD_COMMON)
return()
endif()
if(CMAKE_COMPILER_IS_GNUCC)
ie_add_compiler_flags(-Wno-all)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# 4267 4244 conversion from 'XXX' to 'YYY', possible loss of data
ie_add_compiler_flags(/wd4244)
# '<': signed/unsigned mismatch
ie_add_compiler_flags(/wd4018)
# conversion from 'size_t' to 'int', possible loss of data
ie_add_compiler_flags(/wd4267)
# unreferenced local variable
ie_add_compiler_flags(/wd4101)
endif()
add_subdirectory(common)
if(ENABLE_INTEL_MYRIAD)
add_subdirectory(third_party)
add_subdirectory(graph_transformer)
add_subdirectory(myriad_plugin)
if(DEFINED VPU_CLC_MA2X8X_ROOT AND NOT CPACK_GENERATOR MATCHES "^(DEB|RPM|CONDA-FORGE|BREW)$")
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/custom_kernels/
DESTINATION ${OV_CPACK_PLUGINSDIR}/vpu_custom_kernels
COMPONENT myriad)
install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vpu_custom_kernels/
DESTINATION ${OV_CPACK_PLUGINSDIR}/vpu_custom_kernels
COMPONENT myriad)
install(DIRECTORY ${VPU_CLC_MA2X8X_ROOT}/
DESTINATION tools/cl_compiler
COMPONENT myriad
USE_SOURCE_PERMISSIONS
PATTERN ie_dependency.info EXCLUDE)
endif()
endif()