feat: added generate, rebuild and build commands to justfile
This commit is contained in:
parent
c3ad33ef05
commit
3fad9ffda3
8
justfile
8
justfile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue