From 4a55ae0536e46020ca17070155a3223536e36703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Fri, 15 May 2015 16:01:11 +0200 Subject: Async: make it a stand-alone CMake project --- async/autotests/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'async/autotests/CMakeLists.txt') diff --git a/async/autotests/CMakeLists.txt b/async/autotests/CMakeLists.txt index 8116f13..b2209ab 100644 --- a/async/autotests/CMakeLists.txt +++ b/async/autotests/CMakeLists.txt @@ -1,11 +1,13 @@ -include_directories(../src ${CMAKE_CURRENT_BINARY_DIR}) +include(ECMAddTests) -add_executable(asynctest asynctest.cpp) -qt5_use_modules(asynctest Test) -target_link_libraries(asynctest akonadi2async Qt5::Core Qt5::Test) +ecm_add_test(asynctest.cpp + TEST_NAME asynctest + LINK_LIBRARIES KF5Async Qt5::Test +) if (WITH_KJOB) - add_executable(kjobtest kjobtest.cpp testkjob.cpp) - qt5_use_modules(kjobtest Test) - target_link_libraries(kjobtest akonadi2async Qt5::Core Qt5::Test KF5::CoreAddons) -endif () \ No newline at end of file + ecm_add_test(kjobtest.cpp testkjob.cpp + TEST_NAME kjobtest + LINK_LIBRARIES KF5Async Qt5::Test KF5::CoreAddons + ) +endif() -- cgit v1.2.3