rewrote the generate scripts for cmake

This commit is contained in:
2026-03-09 21:27:57 +01:00
parent 2f847d56a3
commit 408c41134e
2 changed files with 12 additions and 6 deletions

View File

@@ -1,6 +1,11 @@
echo Generating vs2026 project files... echo Generating vs2026 project files...
.\vendor\premake\windows\premake5.exe vs2026
echo Generating compile_commands.json with premake-ecc where cmake >target 2>nul
.\vendor\premake\windows\premake5.exe ecc if %ERRORLEVEL% neq 0 (
echo HIBA: A CMake nincs telepitve, vagy nincs hozzaadva a PATH-hoz.
pause
exit /b 1
)
cmake -G "Visual Studio 18 2026" -A x64
echo Done echo Done
PAUSE PAUSE

View File

@@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
echo "Generating Makefiles..." echo "Generating Makefiles..."
./vendor/premake/linux/premake5 gmake2 cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
echo "Generating compile_commands.json for clangd..." echo "Generating compile_commands.json for clangd..."
./vendor/premake/linux/premake5 ecc ln -sf build/compile_commands.json compile_commands.json
echo "Done!" echo "Done!"
echo "Run `make help` to see how to build the project."
echo "To compile run:\n cmake --build build -j":