Use sfml_add_test macro for unit tests and copy dlls to output directory if required

This commit is contained in:
= 2018-11-29 18:38:27 +00:00 committed by Lukas Dürrenberger
parent 2c3a321afd
commit 53972ed5f2
3 changed files with 47 additions and 13 deletions

View file

@ -285,8 +285,12 @@ if(SFML_BUILD_DOC)
add_subdirectory(doc)
endif()
if(SFML_BUILD_TEST_SUITE)
enable_testing()
add_subdirectory(test)
if (SFML_OS_IOS)
message( WARNING "Unit testing not supported on iOS")
else()
enable_testing()
add_subdirectory(test)
endif()
endif()
# on Linux and BSD-like OS, install pkg-config files by default