Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4fb0fb38 authored by Laurent Montel's avatar Laurent Montel 😁

Make run without install them

parent 5e7b4bdc
......@@ -5,7 +5,15 @@ project(AkonadiSearch VERSION ${PIM_VERSION})
# ECM setup
set(KF5_VERSION "5.37.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
option(RUN_UNINSTALL "test run uninstalled apps (experimental)" FALSE)
set(ECM_VERSION ${KF5_VERSION})
# ECM setup
if (RUN_UNINSTALL)
set(ECM_VERSION "5.38.0")
endif()
find_package(ECM ${ECM_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(GenerateExportHeader)
......
......@@ -35,7 +35,7 @@ set(indexertest_SRCS
add_definitions(-DAKONADI_SEARCH_NO_PLUGINS=TRUE)
add_executable(indexertest ${indexertest_SRCS})
add_test(indexertest indexertest)
add_test(NAME indexertest COMMAND indexertest)
ecm_mark_as_test(indexertest)
target_link_libraries(indexertest
${indexer_LIBS}
......@@ -59,7 +59,7 @@ add_akonadi_isolated_test_advanced(collectionindexingjobtest.cpp "${scheduler_SR
if(NOT WIN32)
add_executable(collectionquerytest collectionquerytest.cpp ${query_SRCS} ${indexer_SRCS} ${scheduler_SRCS})
add_test(collectionquerytest collectionquerytest)
add_test(NAME collectionquerytest COMMAND collectionquerytest)
ecm_mark_as_test(collectionquerytest)
target_link_libraries(collectionquerytest
${indexer_LIBS}
......
......@@ -31,7 +31,7 @@ set(searchplugintest_SRCS
add_definitions(-DAKONADI_SEARCH_NO_PLUGINS=TRUE)
add_executable( searchplugintest ${searchplugintest_SRCS} )
add_test( searchplugintest searchplugintest )
add_test( NAME searchplugintest COMMAND searchplugintest )
ecm_mark_as_test(searchplugintest)
target_link_libraries(searchplugintest
......
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