aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rw-r--r--README.md3
2 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7585475..88f6001 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.14)
project(kdeltachat LANGUAGES CXX)
+find_package(ECM REQUIRED NO_MODULE)
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_MODULE_DIR})
+include(KDEInstallDirs)
+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
@@ -41,3 +45,5 @@ target_link_libraries(kdeltachat
PRIVATE KF5::Kirigami2
PRIVATE PkgConfig::DeltaChat
m dl)
+
+install(TARGETS kdeltachat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/README.md b/README.md
index 1b08f03..cb5658a 100644
--- a/README.md
+++ b/README.md
@@ -79,6 +79,9 @@ Runtime dependencies:
Install FileDialog:
- `pacman -S qt5-quickcontrols`
+Install `extra-cmake-modules`(https://api.kde.org/ecm/manual/ecm-kde-modules.7.html):
+- `pacman -S extra-cmake-modules`
+
### OpenSUSE
OpenSUSE Leap 15.2: