From 0ef5903c73fbf074317620ef739cf6fb026969a6 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Wed, 22 Apr 2015 13:09:24 +0100 Subject: [PATCH] Use ecm_add_test correctly The first argument is not the target name but one of the source files. --- autotests/CMakeLists.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 274cbcaaa..f27f479ba 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -3,62 +3,62 @@ add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" ) include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) -ecm_add_test(shelltest shelltest.cpp ../shell/shellutils.cpp +ecm_add_test(shelltest.cpp ../shell/shellutils.cpp TEST_NAME "shelltest" LINK_LIBRARIES Qt5::Test okularcore KF5::KDELibs4Support ) -ecm_add_test(parttest parttest.cpp +ecm_add_test(parttest.cpp TEST_NAME "parttest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore okularpart KF5::KDELibs4Support ) -ecm_add_test(documenttest documenttest.cpp +ecm_add_test(documenttest.cpp TEST_NAME "documenttest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::KDELibs4Support KF5::ThreadWeaver ) -ecm_add_test(searchtest searchtest.cpp +ecm_add_test(searchtest.cpp TEST_NAME "searchtest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::KDELibs4Support ) -ecm_add_test(annotationstest annotationstest.cpp +ecm_add_test(annotationstest.cpp TEST_NAME "annotationstest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::KDELibs4Support ) -ecm_add_test(urldetecttest urldetecttest.cpp +ecm_add_test(urldetecttest.cpp TEST_NAME "urldetecttest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml KF5::CoreAddons KF5::KDELibs4Support ) -ecm_add_test(editannotationcontentstest editannotationcontentstest.cpp testingutils.cpp +ecm_add_test(editannotationcontentstest.cpp testingutils.cpp TEST_NAME "editannotationcontentstest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::KDELibs4Support ) -ecm_add_test(addremoveannotationtest addremoveannotationtest.cpp testingutils.cpp +ecm_add_test(addremoveannotationtest.cpp testingutils.cpp TEST_NAME "addremoveannotationtest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::KDELibs4Support ) -ecm_add_test(translateannotationtest translateannotationtest.cpp testingutils.cpp +ecm_add_test(translateannotationtest.cpp testingutils.cpp TEST_NAME "translateannotationtest" LINK_LIBRARIES Qt5::Widgets Qt5::Test Qt5::Xml okularcore KF5::KDELibs4Support ) -ecm_add_test(modifyannotationpropertiestest modifyannotationpropertiestest.cpp testingutils.cpp +ecm_add_test(modifyannotationpropertiestest.cpp testingutils.cpp TEST_NAME "modifyannotationpropertiestest" LINK_LIBRARIES Qt5::Widgets Qt5::Test okularcore KF5::KDELibs4Support ) -ecm_add_test(editformstest editformstest.cpp +ecm_add_test(editformstest.cpp TEST_NAME "editformstest" LINK_LIBRARIES Qt5::Widgets Qt5::Test okularcore KF5::KDELibs4Support ) -ecm_add_test(mainshelltest mainshelltest.cpp ../shell/okular_main.cpp ../shell/shellutils.cpp ../shell/shell.cpp +ecm_add_test(mainshelltest.cpp ../shell/okular_main.cpp ../shell/shellutils.cpp ../shell/shell.cpp TEST_NAME "mainshelltest" LINK_LIBRARIES Qt5::Test KF5::Activities okularpart okularcore )