1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
5 set (TARGET_NAME "hello_classification")
8 ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
11 # Find OpenCV components if exist
12 find_package(OpenCV COMPONENTS imgcodecs QUIET)
14 message(WARNING "OPENCV is disabled or not found, " ${TARGET_NAME} " skipped")
18 # Create named folders for the sources within the .vcproj
19 # Empty name lists them directly under the .vcproj
20 source_group("src" FILES ${SRC})
22 link_directories(${LIB_FOLDER})
24 # Create library file from sources.
25 add_executable(${TARGET_NAME} ${SRC})
28 # This target supports UNICODE on Windows
29 set_target_properties(${TARGET_NAME} PROPERTIES COMPILE_FLAGS "/D_UNICODE /DUNICODE")
32 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
33 COMPILE_PDB_NAME ${TARGET_NAME})
35 target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} ${OpenCV_LIBRARIES})
39 target_link_libraries(${TARGET_NAME} ${LIB_DL} pthread)