-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_deps.bat
30 lines (26 loc) · 1.14 KB
/
make_deps.bat
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
if exist .\deps\OpenCV\build\ (
echo Skipping OpenCV build - folder already exists.
) else (
cmake -G "Visual Studio 16 2019" -S .\deps\OpenCV -B .\deps\OpenCV\build -D BUILD_SHARED_LIBS=ON -D BUILD_opencv_world=ON
cmake --build .\deps\OpenCV\build --config "Debug"
cmake --build .\deps\OpenCV\build --config "Release"
)
if exist .\deps\OpenCV\install\ (
echo Skipping OpenCV install - folder already exists.
) else (
cmake --install .\deps\OpenCV\build --config "Debug" --prefix .\deps\OpenCV\install
cmake --install .\deps\OpenCV\build --config "Release" --prefix .\deps\OpenCV\install
)
if exist .\deps\OpenPose\build\ (
echo Skipping OpenPose build - folder already exists.
) else (
where /q nvcc --version
IF ERRORLEVEL 1 (
cmake -G "Visual Studio 16 2019" -S .\deps\Openpose -B .\deps\OpenPose\build -D GPU_MODE=CPU_ONLY -D BUILD_EXAMPLES=OFF
) else (
cmake -G "Visual Studio 16 2019" -S .\deps\Openpose -B .\deps\OpenPose\build -D GPU_MODE=CUDA -D BUILD_EXAMPLES=OFF
)
cmake --build .\deps\OpenPose\build --config "Debug"
cmake --build .\deps\OpenPose\build --config "Release"
)
PAUSE