build: back to cmake.

This commit is contained in:
2025-07-06 23:51:45 +08:00
parent 13be630726
commit a04202c00e
33 changed files with 436 additions and 5247 deletions

View File

@@ -1,13 +1,9 @@
@echo off
@echo on
set QT_DIR=C:/Qt/6.8.3
cd ..
xmake f -p windows -a x64 -m release --qt=C:\Qt\6.8.3 --gui=y -o build-qt6 -v
xmake -r
set outDir=%~dp0..\build-qt6\windows\x64\release\
if %errorlevel% equ 0 (
del /q "%outDir%\*.lib" 2>nul
for /f "delims=" %%f in ('dir /b /a-d "%outDir%\*Test*" 2^>nul') do (
del /q "%outDir%\%%f"
)
C:\Qt\6.8.3\bin\windeployqt.exe %outDir%frelayGUI.exe
)
cmake -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON
cmake --build build-qt6 --config Release
cd build-qt6
cpack
pause