diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-05-02 04:22:33 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-05-04 17:11:04 +0300 |
commit | b064df8b45bb4b22294d1f6691638e5a98423371 (patch) | |
tree | 4d9c3c57342e408bcc67b333f0f3958f4c929843 /Makefile | |
parent | 9cc9b623ebae8ef9021d1462dc0d58189777f65e (diff) |
Add event contents
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |