Skip to content

Commit 9dd9fcb

Browse files
committed
Update cmake in tests
1 parent df10b25 commit 9dd9fcb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test_accuracy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
- name: Run CPP-PY Bindings Test
5353
run: |
5454
source venv/bin/activate
55-
PYTHONPATH="$PYTHONPATH:build/py_bindings" pytest --data=./data --config=./tests/python/accuracy/public_scope.json tests/cpp/accuracy/test_bindings.py
55+
PYTHONPATH="$PYTHONPATH:build/model_api/cpp/py_bindings/" pytest --data=./data --config=./tests/python/accuracy/public_scope.json tests/cpp/accuracy/test_bindings.py

tests/cpp/accuracy/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ FetchContent_MakeAvailable(json googletest)
6363

6464
include(../cmake/common.cmake)
6565

66+
find_package(Python3 REQUIRED)
67+
execute_process(
68+
COMMAND ${Python3_EXECUTABLE} -c "from openvino.utils import get_cmake_path; print(get_cmake_path(), end='')"
69+
OUTPUT_VARIABLE OpenVINO_DIR_PY
70+
ERROR_QUIET
71+
)
72+
6673
find_package(OpenCV REQUIRED COMPONENTS core highgui videoio imgproc imgcodecs)
67-
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
74+
find_package(OpenVINO REQUIRED COMPONENTS Runtime HINTS "${OpenVINO_DIR_PY}")
6875

6976
add_subdirectory(../../../src/cpp ${tests_BINARY_DIR}/model_api/cpp)
7077

0 commit comments

Comments
 (0)