Warning, /pim/akonadi-search/agent/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DMAIL_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/testdata" )
0002 
0003 include_directories(
0004   ${CMAKE_CURRENT_SOURCE_DIR}/..
0005 )
0006 
0007 set(indexer_SRCS
0008     ../emailindexer.cpp
0009     ../contactindexer.cpp
0010     ../akonotesindexer.cpp
0011     ../calendarindexer.cpp
0012     ../abstractindexer.cpp
0013     ../collectionindexer.cpp
0014     ../../search/pimsearchstore.cpp
0015     ../../search/email/emailsearchstore.cpp
0016     ../../search/email/agepostingsource.cpp
0017     ../../search/contact/contactsearchstore.cpp
0018     ../../search/calendar/calendarsearchstore.cpp
0019     ../akonadi_indexer_agent_debug.cpp
0020     ../akonadi_indexer_agent_calendar_debug.cpp
0021     ${CMAKE_CURRENT_BINARY_DIR}/../../agent/akonadi_indexer_agent_email_debug.cpp
0022 )
0023 
0024 set(indexer_LIBS
0025     Qt::Test
0026     KPim6::AkonadiCore
0027     KPim6::AkonadiMime
0028     KPim6::AkonadiAgentBase
0029     KPim6::Mime
0030     KF6::Contacts
0031     KF6::CalendarCore
0032     KPim6::AkonadiSearchPIM
0033     KPim6::AkonadiSearchXapian
0034     KF6::I18n
0035     KF6::Codecs
0036     KF6::ConfigCore
0037     KF6::TextUtils
0038 )
0039 
0040 set(indexertest_SRCS
0041     indexertest.cpp
0042     ${indexer_SRCS}
0043 )
0044 
0045 add_definitions(-DAKONADI_SEARCH_NO_PLUGINS=TRUE)
0046 
0047 add_executable(indexertest ${indexertest_SRCS})
0048 add_test(NAME indexertest COMMAND indexertest)
0049 ecm_mark_as_test(indexertest)
0050 target_link_libraries(indexertest
0051     ${indexer_LIBS}
0052 )
0053 
0054 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
0055 if (KDEPIM_RUN_AKONADI_TEST)
0056         set(KDEPIMLIBS_RUN_ISOLATED_TESTS TRUE)
0057         set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE)
0058 
0059         set(scheduler_SRCS
0060             ../scheduler.cpp
0061             ../index.cpp
0062             ../collectionindexingjob.cpp
0063             ${indexer_SRCS}
0064         )
0065 
0066         add_akonadi_isolated_test_advanced(schedulertest.cpp "${scheduler_SRCS}" "${indexer_LIBS}")
0067         add_akonadi_isolated_test_advanced(collectionindexingjobtest.cpp "${scheduler_SRCS}" "${indexer_LIBS}")
0068 
0069 
0070 if(NOT WIN32)
0071 add_executable(collectionquerytest collectionquerytest.cpp ${query_SRCS} ${indexer_SRCS} ${scheduler_SRCS})
0072 add_test(NAME collectionquerytest COMMAND collectionquerytest)
0073 ecm_mark_as_test(collectionquerytest)
0074 target_link_libraries(collectionquerytest
0075     ${indexer_LIBS}
0076     KPim6::AkonadiSearchPIM
0077     KPim6::AkonadiAgentBase
0078     KF6::ConfigCore
0079     Qt::Widgets
0080     Qt::DBus
0081     KF6::TextUtils
0082 )
0083 endif()
0084 endif()