--- /dev/null
+# Copyright (C) 2018-2020 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+#
+
+unset(ITT_INCLUDE_DIR CACHE)
+unset(ITT_LIB CACHE)
+
+if(NOT DEFINED INTEL_VTUNE_DIR AND DEFINED ENV{INTEL_VTUNE_DIR})
+ set(INTEL_VTUNE_DIR "$ENV{INTEL_VTUNE_DIR}")
+endif()
+if(NOT DEFINED INTEL_VTUNE_DIR)
+ if(EXISTS "/opt/intel/vtune_amplifier_xe/include")
+ set(INTEL_VTUNE_DIR "/opt/intel/vtune_amplifier_xe")
+ elseif(EXISTS "/opt/intel/vtune_amplifier/include")
+ set(INTEL_VTUNE_DIR "/opt/intel/vtune_amplifier")
+ elseif (EXISTS "C:/Program Files (x86)/IntelSWTools/VTune Amplifier XE")
+ set(INTEL_VTUNE_DIR "C:/Program Files (x86)/IntelSWTools/VTune Amplifier XE")
+ elseif (EXISTS "C:/Program Files (x86)/IntelSWTools/VTune Amplifier")
+ set(INTEL_VTUNE_DIR "C:/Program Files (x86)/IntelSWTools/VTune Amplifier")
+ elseif (EXISTS "$ENV{HOME}/intel/vtune_amplifier_2019")
+ set(INTEL_VTUNE_DIR "$ENV{HOME}/intel/vtune_amplifier_2019")
+ endif()
+endif()
+
+if(DEFINED INTEL_VTUNE_DIR)
+ message(STATUS "INTEL_VTUNE_DIR = ${INTEL_VTUNE_DIR}")
+
+ find_path(ITT_INCLUDE_DIR
+ FILES
+ ittnotify.h
+ PATHS "${INTEL_VTUNE_DIR}/include/")
+
+ find_library(ITT_LIB
+ "libittnotify${CMAKE_STATIC_LIBRARY_SUFFIX}"
+ PATHS ${INTEL_VTUNE_DIR}/lib64)
+
+ set(Located_ITT_LIBS ${ITT_LIB})
+ set(Located_ITT_INCLUDE_DIRS ${ITT_INCLUDE_DIR})
+else()
+ message(STATUS "INTEL_VTUNE_DIR is not defined")
+endif()
+
+# Handle find_package() arguments, and set INTEL_ITT_FOUND
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(INTEL_ITT
+ REQUIRED_VARS
+ Located_ITT_INCLUDE_DIRS
+ Located_ITT_LIBS)
+
+if(INTEL_ITT_FOUND)
+ add_library(ittnotify STATIC IMPORTED GLOBAL)
+ set_target_properties(ittnotify PROPERTIES IMPORTED_LOCATION "${Located_ITT_LIBS}"
+ INTERFACE_INCLUDE_DIRECTORIES ${Located_ITT_INCLUDE_DIRS}
+ INTERFACE_COMPILE_DEFINITIONS ENABLE_PROFILING_ITT)
+
+ set(INTEL_ITT_LIBS ittnotify ${CMAKE_DL_LIBS})
+endif()
-readability/todo,
-readability/fn_size
" $(find ${SOURCE_DIR} -name '*.h' -or -name '*.cc' -or -name '*.c' -or -name '*.cpp' -or -name '*.hpp' |
- grep -v 'inference-engine/bin\|inference-engine/build\|inference-engine/report\|inference-engine/scripts\|inference-engine/temp\|inference-engine/tests_deprecated/\|gtest\|inference-engine/ie_bridges\|pugixml\|inference-engine/tools/vpu_perfcheck\|thirdparty/gflags\|thirdparty/ade\|thirdparty/fluid\|thirdparty/mkl-dnn\|thirdparty/movidius\|thirdparty/ocv\|thirdparty/plugixml\|thirdparty/std_lib\|thirdparty/clDNN/common\|thirdparty/clDNN/tutorial\|thirdparty/clDNN/utils\|thirdparty/ittnotify' |
+ grep -v 'inference-engine/bin\|inference-engine/build\|inference-engine/report\|inference-engine/scripts\|inference-engine/temp\|inference-engine/tests_deprecated/\|gtest\|inference-engine/ie_bridges\|pugixml\|inference-engine/tools/vpu_perfcheck\|thirdparty/gflags\|thirdparty/ade\|thirdparty/fluid\|thirdparty/mkl-dnn\|thirdparty/movidius\|thirdparty/ocv\|thirdparty/plugixml\|thirdparty/std_lib\|thirdparty/clDNN/common\|thirdparty/clDNN/tutorial\|thirdparty/clDNN/utils' |
grep 'include\|src\|inference-engine/samples\|thirdparty/clDNN/kernel_selector\|thirdparty/clDNN/api\|thirdparty/clDNN/api_extension\|inference-engine/tests_' ) 2>&1 |
sed 's/"/\"/g' >&1| sed 's/</\</g' >&1| sed 's/>/\>/g' >&1| sed "s/'/\'/g" >&1|
sed 's/\&/\&/g' >&1| python ${CURRENT_DIR}/cpplint_to_cppcheckxml.py &> ${CPPLINT_REPORT_DIR}/cpplint-cppcheck-result.xml
add_subdirectory(stb_lib)
add_subdirectory(ade)
add_subdirectory(fluid/modules/gapi)
- add_subdirectory(ittnotify)
target_include_directories(pugixml INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src>")
# developer package
- ie_developer_export_targets(ade fluid pugixml ittnotify)
+ ie_developer_export_targets(ade fluid pugixml)
if(TARGET pugixml_mt)
ie_developer_export_targets(pugixml_mt)
set_target_properties(pugixml_mt PROPERTIES FOLDER thirdparty)