From 9253fed401038a62e388f600a359ec2ed1708e9c Mon Sep 17 00:00:00 2001 From: SoftFever Date: Fri, 14 Jul 2023 23:56:55 +0800 Subject: [PATCH] add vs2022 bat --- build_release_vs2022.bat | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 build_release_vs2022.bat diff --git a/build_release_vs2022.bat b/build_release_vs2022.bat new file mode 100644 index 000000000..c06eaf8d5 --- /dev/null +++ b/build_release_vs2022.bat @@ -0,0 +1,23 @@ +set WP=%CD% +cd deps +mkdir build +cd build +set DEPS=%CD%/OrcaSlicer_dep +if "%1"=="studio" ( + GOTO :studio +) +echo "building deps.." +cmake ../ -G "Visual Studio 17 2022" -A x64 -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=Release +@REM cmake --build . --config Release --target ALL_BUILD -- -m + +if "%1"=="deps" exit /b 0 + +:studio +echo "building studio..." +cd %WP% +mkdir build +cd build + +cmake .. -G "Visual Studio 17 2022" -A x64 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./OrcaSlicer" -DCMAKE_BUILD_TYPE=Release +cmake --build . --config Release --target ALL_BUILD -- -m +cmake --build . --target install --config Release \ No newline at end of file