Remove BUILD_TESTS cmake option

This commit is contained in:
Jonas Kvinge
2021-03-13 15:18:38 +01:00
parent d2385d9287
commit 9723c3606a
2 changed files with 12 additions and 19 deletions

View File

@@ -1,16 +1,5 @@
enable_testing()
if(BUILD_WITH_QT6)
find_package(Qt6 COMPONENTS Test REQUIRED)
set(QtTest_LIBRARIES Qt6::Test)
else()
find_package(Qt5 ${QT_MIN_VERSION} COMPONENTS Test REQUIRED)
set(QtTest_LIBRARIES ${Qt5Test_LIBRARIES})
endif()
find_package(GTest REQUIRED)
find_library(GMOCK_LIBRARY gmock REQUIRED)
add_definitions(-DGTEST_USE_OWN_TR1_TUPLE=1)
set(TESTUTILS-SOURCES