feat: added generate, rebuild and build commands to justfile

This commit is contained in:
Sara Gerretsen 2025-09-03 22:33:12 +02:00
parent c3ad33ef05
commit 3fad9ffda3

View file

@ -2,3 +2,11 @@ set-project-name projectname:
sed -i "s/CHANGEME/{{projectname}}/g" ./CMakeLists.txt ./src/CMakeLists.txt ./justfile .kdev4/* sed -i "s/CHANGEME/{{projectname}}/g" ./CMakeLists.txt ./src/CMakeLists.txt ./justfile .kdev4/*
mv ./src/CHANGEME.cpp ./src/{{projectname}}.cpp mv ./src/CHANGEME.cpp ./src/{{projectname}}.cpp
sed -i "s/CHANGEME.cpp/{{projectname}}.cpp/g" ./justfile sed -i "s/CHANGEME.cpp/{{projectname}}.cpp/g" ./justfile
generate:
cmake -S. -Bbuild
rebuild:
cmake --build build
build: generate rebuild