Add Makefile with build & test actions

This commit is contained in:
2024-06-14 21:17:30 +02:00
parent c4e6c041fe
commit 90965877eb
3 changed files with 18 additions and 1 deletions

13
Makefile Normal file
View File

@@ -0,0 +1,13 @@
SHELL := /bin/bash
.DEFAULT_GOAL := build
.PHONY: build test
build:
@if [ -d build_release ]; then rm -fr build_release; fi
@mkdir build_release
@cmake -B build_release -S . -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF
@cmake --build build_release
test:
@echo "Testing..."
@cd tests && ./test