skopy/Makefile

18 lines
348 B
Makefile
Raw Normal View History

2024-03-31 15:44:34 +00:00
.PHONY: build tests install
build:
cmake -B build
cmake --build build
tests: build
build/tests/skopy-tests \
&& echo -e "\e[32m--- all tests passed ---\e[0m" \
|| echo -e "\e[31m--- some tests failed ---\e[0m"
install: tests
sudo cmake --install build
check:
@cppcheck --enable=all -q lib tests cli \
--suppress=missingIncludeSystem