forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (34 loc) · 1.29 KB
/
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
35
36
37
38
39
40
41
42
43
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if(NOT ENABLE_PYTHON)
message(WARNING "Please enable OpenVINO Runtime Python API (set -DENABLE_PYTHON=ON) targets to enable Model Optimizer target")
else()
add_custom_target(model_optimizer DEPENDS ie_api openvino_ir_frontend pyopenvino)
if(ENABLE_TESTS)
add_subdirectory(unit_tests/mock_mo_frontend/mock_mo_frontend)
add_dependencies(model_optimizer openvino_mock_mo_frontend)
add_subdirectory(unit_tests/mock_mo_frontend/mock_mo_python_api)
add_dependencies(model_optimizer mock_mo_python_api)
endif()
endif()
# install
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/automation/version.txt.in"
"${CMAKE_CURRENT_SOURCE_DIR}/version.txt" @ONLY)
if(ENABLE_TESTS)
install(FILES requirements_dev.txt
DESTINATION tests/mo
COMPONENT tests
EXCLUDE_FROM_ALL)
install(DIRECTORY unit_tests
DESTINATION tests/mo
COMPONENT tests
EXCLUDE_FROM_ALL)
install(DIRECTORY automation
DESTINATION tests/mo
COMPONENT tests
EXCLUDE_FROM_ALL)
install(FILES .coveragerc
DESTINATION tests/mo
COMPONENT tests
EXCLUDE_FROM_ALL)
endif()