-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_release_windows.bat
28 lines (20 loc) · 1.2 KB
/
build_release_windows.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
@echo off
echo Suppression des répertoires...
rd /s /q "_deps" "CMakeFiles" "OctaSplit.dir" "OctaSplit_artefacts" "x64" ".vs" "build"
echo Suppression des fichiers...
del /q ALL_BUILD.vcxproj ALL_BUILD.vcxproj.filters ALL_BUILD.vcxproj.user cmake_install.cmake CMakeCache.txt CPackConfig.cmake CPackSourceConfig.cmake INSTALL.vcxproj INSTALL.vcxproj.filters OctaSplit.sln OctaSplit.vcxproj OctaSplit.vcxproj.filters PACKAGE.vcxproj PACKAGE.vcxproj.filters ZERO_CHECK.vcxproj ZERO_CHECK.vcxproj.filters
echo Le nettoyage est terminé.
REM Vérifier si le dossier build existe et le créer si nécessaire
IF NOT EXIST build (mkdir build)
cd build
REM Supprimer le dossier 'bin' s'il existe
IF EXIST bin (rmdir /S /Q bin)
REM Générer les fichiers de projet avec CMake
cmake -DCMAKE_BUILD_TYPE=Release ..
REM vous pouvez spécifier les architectures cibles comme ceci si nécessaire
REM cmake -DCMAKE_BUILD_TYPE=Release -A x64 ..
REM Compiler le projet
cmake --build . --target OctaSplit --config Release -- /m
REM Compiler le projet avec MSBuild
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" OctaSplit.sln /p:Configuration=Release /p:Platform=x64
echo Compilation terminé