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 c299745c authored by Laurent Montel's avatar Laurent Montel 😁

Make run without install them

parent fe455da4
......@@ -5,7 +5,15 @@ project(Akonadi-Notes VERSION ${PIM_VERSION})
# ECM setup
set(KF5_VERSION "5.37.0")
find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
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)
......
......@@ -3,7 +3,7 @@ find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG REQUIRED)
set(notestest_SRCS notestest.cpp)
add_executable(notestest ${notestest_SRCS})
add_test(notestest notestest)
add_test(NAME notestest COMMAND notestest)
ecm_mark_as_test(notestest)
target_link_libraries(notestest KF5AkonadiNotes KF5::Mime Qt5::Test)
......
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