summaryrefslogtreecommitdiff
path: root/build/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/Makefile b/build/Makefile
index 94aa135..9874dd0 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -65,6 +65,16 @@ CMAKE_BINARY_DIR = /home/dawidg81/minesweeper/build
#=============================================================================
# Targets provided globally by CMake.
+# Special rule for the target test
+test:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..."
+ /usr/bin/ctest --force-new-ctest-process $(ARGS)
+.PHONY : test
+
+# Special rule for the target test
+test/fast: test
+.PHONY : test/fast
+
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
@@ -210,6 +220,7 @@ help:
@echo "... depend"
@echo "... edit_cache"
@echo "... rebuild_cache"
+ @echo "... test"
@echo "... minesweeper"
@echo "... src/Game.o"
@echo "... src/Game.i"