forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (29 loc) · 861 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
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (C) 2018-2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
set(TARGET_NAME ov_auto_func_tests)
if(ENABLE_AUTO_BATCH)
list(APPEND DEPENDENCIES openvino_auto_batch_plugin)
list(APPEND COMPILE_DEFINITIONS ENABLE_AUTO_BATCH)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ov_add_compiler_flags(/wd4305)
endif()
ov_add_test_target(
NAME ${TARGET_NAME}
ROOT ${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBRARIES
openvino::runtime::dev
gtest
gtest_main
funcSharedTests
INCLUDES
${CMAKE_CURRENT_SOURCE_DIR}
${TEST_COMMON_INCLUDE_DIR}
ADD_CLANG_FORMAT
LABELS
Multi
Auto
)
target_compile_definitions(${TARGET_NAME} PRIVATE ${COMPILE_DEFINITIONS})
ov_set_threading_interface_for(${TARGET_NAME})