summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-02 04:22:33 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-04 17:11:04 +0300
commitb064df8b45bb4b22294d1f6691638e5a98423371 (patch)
tree4d9c3c57342e408bcc67b333f0f3958f4c929843 /Makefile
parent9cc9b623ebae8ef9021d1462dc0d58189777f65e (diff)
Add event contents
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8bf98a4b..477ec858 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
debug:
- @cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
+ @cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
@cmake --build build
release-debug:
- @cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ @cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
@cmake --build build
run:
@@ -14,6 +14,11 @@ run:
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