This is a boilerplate for xmake projects.
- [] Create a pre-commit to generate CMakeLists
xmake project -k cmake
git clone https://github.com/Daniel-Boll/xmake-boilerplate.git
cd xmake-boilerplate
xmake
This script compiles the project and runs it.
compile () {
xmake && xmake project -k compile_commands
if [ "$1" = "r" ] || [ "$1" = "run" ]
then
xmake run $2
fi
}