From 8f992bb6ff8a1995ed757edf39578c986ef700fc Mon Sep 17 00:00:00 2001 From: aqua Date: Thu, 25 Aug 2022 21:30:08 +0300 Subject: Add CMakePresets.json - add clang-tidy to debug configuration - add valgrind target: test_memcheck - add coverage target: test_coverage - bitbucket pipelines: store test results in junit format for test reporting --- src/plugins/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 01b13ae1..ab4d8950 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -1,7 +1,7 @@ add_library(pluginloader STATIC pluginloader.cpp pluginloader.h) target_link_libraries(pluginloader PUBLIC Qt6::Core Qt6::Widgets) -if(TESTING) +if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") add_executable(load_plugin test/pluginloader.cpp) target_link_libraries(load_plugin GTest::gtest GTest::gtest_main Qt6::Core) endif() -- cgit v1.2.1