@echo off echo Building PrivateBin API C++ DLL... REM Create build directory if not exist "build" mkdir build cd build REM Generate build files with CMake and vcpkg toolchain cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake REM Build the project cmake --build . --config Release if %ERRORLEVEL% EQU 0 ( echo Build completed successfully! ) else ( echo Build failed with error level %ERRORLEVEL% ) cd ..