ENABLE_TESTING() find_package(Qt${QT_MAJOR_VERSION} REQUIRED Test) if(NOT BUILD_WITH_QT6) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}") endif() # QTEST_MAIN is using QApplication when QT_GUI_LIB is defined remove_definitions(-DQT_GUI_LIB) add_subdirectory(base64unittest) add_subdirectory(bigintunittest) add_subdirectory(certunittest) add_subdirectory(cipherunittest) add_subdirectory(clientplugin) add_subdirectory(dsaunittest) add_subdirectory(filewatchunittest) add_subdirectory(hashunittest) add_subdirectory(hexunittest) add_subdirectory(kdfunittest) add_subdirectory(keybundle) add_subdirectory(keygenunittest) add_subdirectory(keylengthunittest) add_subdirectory(keystore) add_subdirectory(logger) add_subdirectory(macunittest) add_subdirectory(metatype) add_subdirectory(pgpunittest) add_subdirectory(pipeunittest) add_subdirectory(pkits) add_subdirectory(rsaunittest) add_subdirectory(securearrayunittest) add_subdirectory(staticunittest) add_subdirectory(symmetrickeyunittest) add_subdirectory(tls) add_subdirectory(velox) #Tests that require OpenSSL #Remove once we stop supporting openssl < 1.1.1i find_package(OpenSSL 1.1.1) if(OPENSSL_FOUND) add_subdirectory(cms) endif()