mirror of
https://github.com/opencv/opencv.git
synced 2024-12-03 08:19:52 +08:00
fbe41703e4
- CMake install COMPONENT: "scripts"
19 lines
522 B
Batchfile
19 lines
522 B
Batchfile
@ECHO OFF
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
SET "SCRIPT_DIR=%~dp0"
|
|
|
|
IF NOT DEFINED OPENCV_QUIET ( ECHO Setting vars for OpenCV @OPENCV_VERSION@ )
|
|
SET "PATH=!SCRIPT_DIR!\@OPENCV_LIB_RUNTIME_DIR_RELATIVE_CMAKECONFIG@;%PATH%"
|
|
|
|
IF NOT DEFINED OPENCV_SKIP_PYTHON (
|
|
SET "PYTHONPATH_OPENCV=!SCRIPT_DIR!\@OPENCV_PYTHON_DIR_RELATIVE_CMAKECONFIG@"
|
|
IF NOT DEFINED OPENCV_QUIET ( ECHO Append PYTHONPATH: !PYTHONPATH_OPENCV! )
|
|
SET "PYTHONPATH=!PYTHONPATH_OPENCV!;%PYTHONPATH%"
|
|
)
|
|
|
|
IF NOT [%1] == [] (
|
|
%*
|
|
EXIT /B !errorlevel!
|
|
)
|