2019-01-21 12:31:31 -06:00
|
|
|
# Copyright (C) 2018 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2018-10-16 05:45:03 -05:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
set (TARGET_NAME "classification_sample_async")
|
|
|
|
|
|
|
|
file (GLOB SRC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# Create named folders for the sources within the .vcproj
|
|
|
|
# Empty name lists them directly under the .vcproj
|
|
|
|
source_group("src" FILES ${SRC})
|
|
|
|
|
|
|
|
link_directories(${LIB_FOLDER})
|
|
|
|
|
|
|
|
# Create library file from sources.
|
|
|
|
add_executable(${TARGET_NAME} ${SRC})
|
|
|
|
|
|
|
|
set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE"
|
|
|
|
COMPILE_PDB_NAME ${TARGET_NAME})
|
|
|
|
|
|
|
|
|
2018-11-23 07:19:43 -06:00
|
|
|
target_link_libraries(${TARGET_NAME} ${InferenceEngine_LIBRARIES} IE::ie_cpu_extension format_reader gflags)
|
2018-10-16 05:45:03 -05:00
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
target_link_libraries(${TARGET_NAME} ${LIB_DL} pthread)
|
|
|
|
endif()
|