matrixion/Makefile
Konstantinos Sideris b064df8b45 Add event contents
2017-05-04 17:11:04 +03:00

25 lines
540 B
Makefile

SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
debug:
@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
@cmake --build build
release-debug:
@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
@cmake --build build
run:
@./build/nheko
lint:
@clang-format -i $(SRC)
test:
@cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Release
@cmake --build build
@cd build && GTEST_COLOR=1 ctest --verbose
clean:
rm -rf build
.PHONY: build