summaryrefslogtreecommitdiff
path: root/build/Makefile
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-01-29 14:25:19 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-01-29 14:25:19 +0100
commit0bada977b5df418cfa5e84ceef93db13ee1c906b (patch)
treed956c7b0e915c05d8d7c83a0c7b58fc2774cdafc /build/Makefile
parentb368f6de13284e28e68129e87995bf373a1bb386 (diff)
unsuccessfull testing; fied CMakeLists.txt to support testing
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"