From 86db843bc53a93dbf566b24df1462a22fccb619a Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 27 Aug 2022 22:09:16 +0300 Subject: Add parseCommandLine tests - use PluginLoader in plugin tests --- src/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6bf47516..1877a108 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -102,6 +102,14 @@ IF(HAVE_QCA2 AND HAVE_QTOAUTH) ) ENDIF(HAVE_QCA2 AND HAVE_QTOAUTH) +# tests +if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") + add_executable(test_application test/test_application.cpp test/application_mock.hpp + application_instance.cpp application.hpp) + target_compile_definitions(test_application PRIVATE REKONQ_TEST) + target_link_libraries(test_application GTest::gtest GTest::gmock GTest::gtest_main SingleApplication::SingleApplication) + gtest_discover_tests(test_application) +endif() ### ------------ INSTALL FILES... -- cgit v1.2.1