diff --git a/cpp/Makefile b/cpp/Makefile new file mode 100644 index 0000000..1f54c4b --- /dev/null +++ b/cpp/Makefile @@ -0,0 +1,18 @@ +.PHONY: build clean test format + +TEST_THREADS ?= 4 + +build: + conan install . -if build --build=missing + conan build . + +clean: + rm -rf build + +test: + conan install . -if build --build=missing + conan build . + cd build && ctest . -j ${TEST_THREADS} --output-on-failure + +format: + find ./src -type f ! -name "*.pb.h" -iname *.h -o -iname *.cpp | xargs clang-format -i