Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / samples / classification_sample_async / CMakeLists.txt
1 # Copyright (C) 2018-2019 Intel Corporation
2 # SPDX-License-Identifier: Apache-2.0
3 #
4
5 set (TARGET_NAME "classification_sample_async")
6
7 file (GLOB SRC
8         ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
9         )
10
11 # Create named folders for the sources within the .vcproj
12 # Empty name lists them directly under the .vcproj
13 source_group("src" FILES ${SRC})
14
15 link_directories(${LIB_FOLDER})
16
17 # Create library file from sources.
18 add_executable(${TARGET_NAME} ${SRC})
19
20 set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
21 COMPILE_PDB_NAME ${TARGET_NAME})
22
23
24 target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} IE::ie_cpu_extension format_reader gflags)
25
26 if(UNIX)
27     target_link_libraries(${TARGET_NAME} ${LIB_DL} pthread)
28 endif()