diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-27 22:09:16 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-27 22:44:31 +0300 |
commit | 86db843bc53a93dbf566b24df1462a22fccb619a (patch) | |
tree | e4a48a8e9053294f62ed5ea1d66d5c8f9d3d901e /src/CMakeLists.txt | |
parent | Rename rView to RekonqView (diff) | |
download | rekonq-86db843bc53a93dbf566b24df1462a22fccb619a.tar.xz |
Add parseCommandLine tests
- use PluginLoader in plugin tests
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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... |