forked from eizamaliev/openvino_master_class
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
22 lines (16 loc) · 958 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required (VERSION 3.10)
project(blur_background_demo)
find_package(OpenCV REQUIRED)
find_package(InferenceEngine 2021.4.2 REQUIRED)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DSCL_SECURE_NO_WARNINGS)
add_compile_options(/wd4251 /wd4275 /wd4267 # disable some warnings
/W3 # Specify the level of warnings to be generated by the compiler
/EHsc) # Enable standard C++ stack unwinding, assume functions with extern "C" never throw
endif()
set(OMZ_DEMO_DIR ${InferenceEngine_DIR}/../../open_model_zoo/demos)
add_subdirectory(${OMZ_DEMO_DIR}/common/cpp/models models)
add_subdirectory(${OMZ_DEMO_DIR}/common/cpp/utils utils)
add_subdirectory(${OMZ_DEMO_DIR}/thirdparty/gflags gflags EXCLUDE_FROM_ALL)
add_executable(blur_background_demo blur_background_demo.cpp)
target_link_libraries(blur_background_demo ${OpenCV_LIBRARIES} ${InferenceEngine_LIBRARIES} models utils gflags)