* Updated copyright headers
* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"
This reverts commit 372699ec49.
26 lines
722 B
CMake
26 lines
722 B
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
if (NOT ENABLE_AUTO_BATCH)
|
|
return()
|
|
endif()
|
|
|
|
set(TARGET_NAME "openvino_auto_batch_plugin")
|
|
|
|
file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
|
|
|
file(GLOB HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
|
|
|
|
ie_add_plugin(NAME ${TARGET_NAME}
|
|
DEVICE_NAME "BATCH"
|
|
PSEUDO_DEVICE
|
|
SOURCES ${SOURCES} ${HEADERS}
|
|
VERSION_DEFINES_FOR auto_batch.cpp ADD_CLANG_FORMAT)
|
|
|
|
target_link_libraries(${TARGET_NAME} PRIVATE Threads::Threads)
|
|
|
|
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
|
|
|
|
set_target_properties(${TARGET_NAME} PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO})
|