Skip to content

Commit

Permalink
chore: Update CMakeLists.txt to include ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir authored Jan 6, 2025
1 parent aabd0f9 commit 8a29de7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ target_link_libraries(minesweeper PRIVATE wx::net wx::core wx::base)

# Include directories for your source files
target_include_directories(minesweeper PRIVATE ${CMAKE_SOURCE_DIR}/src)

include(CTest)

add_test(
NAME Minesweeper_Run_Test
COMMAND $<TARGET_FILE:minesweeper>
)
set_tests_properties(Minesweeper_Run_Test PROPERTIES PASS_REGULAR_EXPRESSION ".*")

0 comments on commit 8a29de7

Please sign in to comment.