CMAKE: moved GNA var setting to proper place; removed find_package when build python...
[platform/upstream/dldt.git] / inference-engine / cmake / developer_package_ie.cmake
1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
3 #
4
5 # environment variables used
6 # name of environment variable stored path to temp directory"
7 set(DL_SDK_TEMP  "DL_SDK_TEMP")
8
9 # prepare temporary folder
10 function(set_temp_directory temp_variable source_tree_dir)
11     if (DEFINED ENV{${DL_SDK_TEMP}} AND NOT $ENV{${DL_SDK_TEMP}} STREQUAL "")
12         if (WIN32)
13             string(REPLACE "\\" "\\\\" temp $ENV{${DL_SDK_TEMP}})
14         else(WIN32)
15             set(temp $ENV{${DL_SDK_TEMP}})
16         endif(WIN32)
17
18         if (ENABLE_ALTERNATIVE_TEMP)
19             set(ALTERNATIVE_PATH ${source_tree_dir}/temp)
20         endif()
21     else ()
22         message(STATUS "DL_SDK_TEMP envionment not set")
23         set(temp ${source_tree_dir}/temp)
24     endif()
25
26     set("${temp_variable}" "${temp}" PARENT_SCOPE)
27     if(ALTERNATIVE_PATH)
28         set(ALTERNATIVE_PATH "${ALTERNATIVE_PATH}" PARENT_SCOPE)
29     endif()
30 endfunction()
31
32 include(sanitizer)
33 include(cpplint)
34 include(cppcheck)
35
36 if(ENABLE_PROFILING_ITT)
37     find_package(ITT REQUIRED)
38 endif()
39
40 include(plugins/plugins)