Skip to content

Instantly share code, notes, and snippets.

@navono
Created December 19, 2023 00:09
Show Gist options
  • Save navono/576e75ee93645ea21222f958fb323c36 to your computer and use it in GitHub Desktop.
Save navono/576e75ee93645ea21222f958fb323c36 to your computer and use it in GitHub Desktop.
Compile C++ with conan and CMake in Windows Batch
@ECHO ON
set BASEDIR=%~dp0
PUSHD %BASEDIR%
RMDIR /Q /S release
mkdir release
REM for connan
conan install . -if=./release --build=missing -s build_type=Release --profile=default-x86
cd release
cmake .. -A Win32
cmake --build . --config Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment