cmake-cmocka-template/setup.sh

44 lines
746 B
Bash
Raw Normal View History

#!/bin/sh
#Author: Jake G
#Date: 2024
#Filename: setup.sh
PKG_MNGR=""
remove_template_examples () {
echo "does nothing right now"
}
install_needed_dependencies () {
# Check the OS
echo "checking the OS..."
# If it's debian based then apt install
# If it's freeBSD then pkg
# If it's windows....you're SOL
}
create_project_symlinks () {
# Allows the clangd LSP to find it.
ln -s ./build/compile_commands.json ./compile_commands.json
}
build_cmocka () {
cd './cmake/cmocka-1.1.7/'
touch build
cd ./build
make
#TODO: finish this function
}
2024-03-01 06:24:12 +00:00
# The default setup stuff.
default () {
remove_template_examples
install_needed_dependencies
create_project_symlinks
}
default