34 lines
587 B
Batchfile
34 lines
587 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
where conan >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo conan not installed, pip install conan
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
conan install . -s build_type=Release --build=missing
|
|
if errorlevel 1 (
|
|
echo install package failed.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
call %~dp0build\Release\generators\conanbuild.bat
|
|
cmake --preset=conan-release
|
|
if errorlevel 1 (
|
|
echo config failed.
|
|
cd ..
|
|
pause
|
|
exit /b 1
|
|
)
|
|
cmake --build --preset=conan-release
|
|
if errorlevel 1 (
|
|
echo build failed.
|
|
cd ..
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo build success.
|
|
pause |