diff --git a/plugins/filetemplates/CMakeLists.txt b/plugins/filetemplates/CMakeLists.txt index ae3d744..ec1f43f 100644 --- a/plugins/filetemplates/CMakeLists.txt +++ b/plugins/filetemplates/CMakeLists.txt @@ -80,6 +80,7 @@ main.cpp ) add_executable(testfiletemplates ${test_srcs}) +ecm_mark_as_test(testfiletemplates) target_link_libraries(testfiletemplates KDev::Interfaces diff --git a/plugins/quickopen/tests/CMakeLists.txt b/plugins/quickopen/tests/CMakeLists.txt index a85b6c9..f080f43 100644 --- a/plugins/quickopen/tests/CMakeLists.txt +++ b/plugins/quickopen/tests/CMakeLists.txt @@ -1,6 +1,7 @@ add_library(quickopentestbase STATIC quickopentestbase.cpp ../projectfilequickopen.cpp) +ecm_mark_as_test(quickopentestbase) target_link_libraries(quickopentestbase PUBLIC Qt5::Test KF5::IconThemes KDev::Tests KDev::Project KDev::Language) diff --git a/project/tests/CMakeLists.txt b/project/tests/CMakeLists.txt index aed3b6f..6df6508 100644 --- a/project/tests/CMakeLists.txt +++ b/project/tests/CMakeLists.txt @@ -9,15 +9,6 @@ include_directories( ecm_add_test(test_projectmodel.cpp LINK_LIBRARIES Qt5::Test KDev::Interfaces KDev::Project KDev::Language KDev::Tests) -set( projectmodelperformancetest_SRCS - projectmodelperformancetest.cpp -) -add_executable(projectmodelperformancetest ${projectmodelperformancetest_SRCS}) -target_link_libraries(projectmodelperformancetest - Qt5::Test - Qt5::Gui - KDev::Interfaces - KDev::Project - KDev::Language - KDev::Tests -) +ecm_add_test(projectmodelperformancetest.cpp + LINK_LIBRARIES Qt5::Test Qt5::Gui KDev::Interfaces KDev::Project KDev::Language KDev::Tests + GUI) diff --git a/util/duchainify/CMakeLists.txt b/util/duchainify/CMakeLists.txt index d5cba41..f2f90ff 100644 --- a/util/duchainify/CMakeLists.txt +++ b/util/duchainify/CMakeLists.txt @@ -2,4 +2,4 @@ add_executable(duchainify main.cpp) target_link_libraries(duchainify Qt5::Core KF5::KCMUtils KF5::TextEditor KF5::ThreadWeaver KDev::Interfaces KDev::Language KDev::Sublime KDev::Util KDev::OutputView KDev::Shell KDev::Tests) - +ecm_mark_as_test(duchainify)