Commit e1a0c3d5 authored by Laurent Montel's avatar Laurent Montel 😁

Make run without install them

parent 45877a46
project(pim-data-exporter)
cmake_minimum_required(VERSION 3.1)
set(KF5_VERSION "5.36.0")
find_package(ECM ${KF5_VERSION} REQUIRED NO_MODULE)
set(KF5_VERSION "5.37.0")
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(ECMInstallIcons)
......
......@@ -10,7 +10,7 @@ ecm_qt_declare_logging_category(pimsettingexporterconsole_loginfiletest_SRCS HEA
add_executable( pimsettingexporterconsole_loginfiletest ${pimsettingexporterconsole_loginfiletest_SRCS})
add_test( pimsettingexporterconsole_loginfiletest pimsettingexporterconsole_loginfiletest)
add_test(NAME pimsettingexporterconsole_loginfiletest COMMAND pimsettingexporterconsole_loginfiletest)
ecm_mark_as_test(pimsettingexporterconsole_loginfiletest)
target_link_libraries( pimsettingexporterconsole_loginfiletest Qt5::Test)
......@@ -5,29 +5,29 @@ set( pimsettingexporter_kcfg_SRCS ../settings/pimsettingexporterglobalconfig.kcf
kconfig_add_kcfg_files(pimsettingexporter_kcfg_SRCS ${pimsettingexporter_kcfg_SRCS})
add_executable( synchronizeresourcedialogtest synchronizeresourcedialogtest.cpp ../dialog/synchronizeresourcedialog.cpp)
add_test(synchronizeresourcedialogtest synchronizeresourcedialogtest)
add_test(NAME synchronizeresourcedialogtest COMMAND synchronizeresourcedialogtest)
ecm_mark_as_test(synchronizeresourcedialogtest)
target_link_libraries(synchronizeresourcedialogtest Qt5::Test Qt5::Widgets KF5::I18n KF5::ItemViews KF5::ConfigCore)
add_executable( pimsettingexporterconfiguredialogtest pimsettingexporterconfiguredialogtest.cpp ../dialog/pimsettingexporterconfiguredialog.cpp ../widgets/pimsettingexporterconfigurewidget.cpp ${pimsettingexporter_kcfg_SRCS})
add_test(pimsettingexporterconfiguredialogtest pimsettingexporterconfiguredialogtest)
add_test(NAME pimsettingexporterconfiguredialogtest COMMAND pimsettingexporterconfiguredialogtest)
ecm_mark_as_test(pimsettingexporterconfiguredialogtest)
target_link_libraries(pimsettingexporterconfiguredialogtest Qt5::Test Qt5::Widgets KF5::I18n KF5::ItemViews KF5::ConfigCore KF5::ConfigGui)
add_executable( pimsettingexporterconfigurewidgettest pimsettingexporterconfigurewidgettest.cpp ../widgets/pimsettingexporterconfigurewidget.cpp ${pimsettingexporter_kcfg_SRCS})
add_test(pimsettingexporterconfigurewidgettest pimsettingexporterconfigurewidgettest)
add_test(NAME pimsettingexporterconfigurewidgettest COMMAND pimsettingexporterconfigurewidgettest)
ecm_mark_as_test(pimsettingexporterconfigurewidgettest)
target_link_libraries(pimsettingexporterconfigurewidgettest Qt5::Test Qt5::Widgets KF5::I18n KF5::ItemViews KF5::ConfigCore KF5::ConfigGui)
add_executable( selectiontypetreewidgettest selectiontypetreewidgettest.cpp ../widgets/selectiontypetreewidget.cpp ${pimsettingexporter_kcfg_SRCS})
add_test(selectiontypetreewidgettest selectiontypetreewidgettest)
add_test(NAME selectiontypetreewidgettest COMMAND selectiontypetreewidgettest)
ecm_mark_as_test(selectiontypetreewidgettest)
target_link_libraries(selectiontypetreewidgettest Qt5::Test Qt5::Widgets KF5::I18n KF5::ItemViews pimsettingexporterprivate KF5::ConfigCore KF5::ConfigGui KF5::PimCommonAkonadi)
add_executable( selectiontypedialogtest selectiontypedialogtest.cpp ../widgets/selectiontypetreewidget.cpp ../dialog/selectiontypedialog.cpp ${pimsettingexporter_kcfg_SRCS})
add_test(selectiontypedialogtest selectiontypedialogtest)
add_test(NAME selectiontypedialogtest COMMAND selectiontypedialogtest)
ecm_mark_as_test(selectiontypedialogtest)
target_link_libraries(selectiontypedialogtest Qt5::Test Qt5::Widgets KF5::I18n KF5::ItemViews pimsettingexporterprivate KF5::ConfigCore KF5::ConfigGui KF5::PimCommonAkonadi)
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