Separated test suites into their individual modules

- Building per module only requires to have split test utility sections
- System module tests are always added, as the system module is always built
This commit is contained in:
Lukas Dürrenberger 2018-08-19 01:30:53 +02:00 committed by Lukas Dürrenberger
parent 7d496095a5
commit d402ce5a5d
11 changed files with 154 additions and 73 deletions

View file

@ -85,7 +85,7 @@ if(SFML_BUILD_WINDOW)
endif()
# add an option for building the test suite
sfml_set_option(SFML_BUILD_TEST TRUE BOOL "TRUE to build the SFML test suite, FALSE to ignore them")
sfml_set_option(SFML_BUILD_TEST_SUITE TRUE BOOL "TRUE to build the SFML test suite, FALSE to ignore it")
# macOS specific options
if(SFML_OS_MACOSX)
@ -284,7 +284,7 @@ endif()
if(SFML_BUILD_DOC)
add_subdirectory(doc)
endif()
if(SFML_BUILD_TEST)
if(SFML_BUILD_TEST_SUITE)
add_subdirectory(test)
endif()