From 0bada977b5df418cfa5e84ceef93db13ee1c906b Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Thu, 29 Jan 2026 14:25:19 +0100 Subject: unsuccessfull testing; fied CMakeLists.txt to support testing --- build/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build/Makefile') 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" -- cgit v1.2.3