summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-16 13:58:02 +0200
committerMontel Laurent <[email protected]>2017-08-16 13:58:02 +0200
commit5e50aafb36ce653c6bfb5234447a2be7960e31e8 (patch)
tree625cac27dc32e29fb7e75c85a91e696e8a6f27b8
parent68c31ee1e185fe575f133ccd46efc8c516d99dbf (diff)
Allow to run test without install it
-rw-r--r--CMakeLists.txt11
-rw-r--r--src/plugins/balsa/CMakeLists.txt1
-rw-r--r--src/plugins/thunderbird/CMakeLists.txt2
3 files changed, 11 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 541a7d0..da01fff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,8 +2,17 @@ cmake_minimum_required(VERSION 3.1)
set(PIM_VERSION "5.6.40")
project(AkonadiImportWizard VERSION ${PIM_VERSION})
+
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(ECMInstallIcons)
diff --git a/src/plugins/balsa/CMakeLists.txt b/src/plugins/balsa/CMakeLists.txt
index 3e79dcc..ec41241 100644
--- a/src/plugins/balsa/CMakeLists.txt
+++ b/src/plugins/balsa/CMakeLists.txt
@@ -9,7 +9,6 @@ ecm_qt_declare_logging_category(balsaimporter_SRCS HEADER balsaplugin_debug.h
kcoreaddons_add_plugin(balsaimporterplugin JSON balsaimporter.json SOURCES
${balsaimporter_SRCS} INSTALL_NAMESPACE importwizard)
-
target_link_libraries(balsaimporterplugin
KPim::ImportWizard
KF5::XmlGui
diff --git a/src/plugins/thunderbird/CMakeLists.txt b/src/plugins/thunderbird/CMakeLists.txt
index c9db432..8778117 100644
--- a/src/plugins/thunderbird/CMakeLists.txt
+++ b/src/plugins/thunderbird/CMakeLists.txt
@@ -9,7 +9,7 @@ ecm_qt_declare_logging_category(thunderbirdimporter_SRCS HEADER thunderbirdplugi
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
kcoreaddons_add_plugin(thunderbirdimporterplugin JSON thunderbirdimporter.json SOURCES
${thunderbirdimporter_SRCS} INSTALL_NAMESPACE importwizard)
-
+set_target_properties(thunderbirdimporterplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/")
target_link_libraries(thunderbirdimporterplugin
KPim::ImportWizard