Only build tests if Qt5Test is found

This commit is contained in:
Luca Beltrame 2015-08-25 16:55:34 +02:00
parent 86fb685877
commit eef79c96a8
2 changed files with 8 additions and 1 deletions

View file

@ -30,3 +30,7 @@ target_link_libraries(danbooru PUBLIC
install(TARGETS danbooru ${INSTALL_TARGETS_DEFAULT_ARGS})
add_subdirectory(tests)
if (Qt5Test_FOUND)
add_subdirectory(autotests)
endif()