mirror of
https://gitlab.com/manzerbredes/chess-move-interface.git
synced 2025-04-05 17:46:30 +02:00
Make unit tests optional
This commit is contained in:
parent
720c394c50
commit
3a4af94254
1 changed files with 5 additions and 2 deletions
|
@ -22,5 +22,8 @@ if(NOT TARGET ChessMoveInterface)
|
|||
endif()
|
||||
|
||||
# Unit tests
|
||||
enable_testing()
|
||||
add_subdirectory(./tests)
|
||||
set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
|
||||
if(COMPILE_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(./tests)
|
||||
endif()
|
Loading…
Add table
Reference in a new issue