Commit 382f8ea4 authored by Allen Winter's avatar Allen Winter

resources/kolab/tests/CMakeLists.txt - follow new KF5::kimaptest target

this directory isn't built, but I put the change in here for completeness
parent 91c1f14e
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
# if kdepimlibs was built without -DKDE4_BUILD_TESTS, kimaptest doesn't exist.
find_path(KIMAPTEST_INCLUDE_DIR NAMES kimaptest/fakeserver.h)
find_library(KIMAPTEST_LIBRARY NAMES kimaptest)
#if the kimap project wasn't built with tests then we can't build anything in here
if(NOT TARGET KF5::kimaptest)
message(STATUS "Warning: Unable to build the imap autotests since the kimap project did not build the kimaptest library. You need to rebuild kimap with the -DBUILD_TESTING=on option")
return()
endif()
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
set(KDEPIMLIBS_RUN_ISOLATED_TESTS TRUE)
set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE)
if(KIMAPTEST_INCLUDE_DIR AND KIMAPTEST_LIBRARY)
MACRO(KOLAB_RESOURCE_ISOLATED_TESTS)
FOREACH(_testname ${ARGN})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/.. ../../imap/autotests/)
add_akonadi_isolated_test_advanced(${_testname}.cpp "../../imap/autotests/dummypasswordrequester.cpp;../../imap/autotests/dummyresourcestate.cpp;../../imap/autotests/imaptestbase.cpp" "KF5::IMAP;${KIMAPTEST_LIBRARY};Qt5::Test;imapresource;kolabresource;akonaditest;${Libkolab_LIBRARIES}")
kde_enable_exceptions()
ENDFOREACH(_testname)
ENDMACRO(KOLAB_RESOURCE_ISOLATED_TESTS)
KOLAB_RESOURCE_ISOLATED_TESTS (
testretrievetagstask
testchangeitemstagstask
)
endif()
MACRO(KOLAB_RESOURCE_ISOLATED_TESTS)
FOREACH(_testname ${ARGN})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/.. ../../imap/autotests/)
add_akonadi_isolated_test_advanced(${_testname}.cpp "../../imap/autotests/dummypasswordrequester.cpp;../../imap/autotests/dummyresourcestate.cpp;../../imap/autotests/imaptestbase.cpp" "KF5::IMAP;KF5::kimaptest;Qt5::Test;imapresource;kolabresource;akonaditest;${Libkolab_LIBRARIES}")
kde_enable_exceptions()
ENDFOREACH(_testname)
ENDMACRO(KOLAB_RESOURCE_ISOLATED_TESTS)
KOLAB_RESOURCE_ISOLATED_TESTS (
testretrievetagstask
testchangeitemstagstask
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment