From d533f86b5b29963a695dbc50f6543a317a2ccd3d Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 24 Feb 2021 04:38:54 +0300 Subject: CMakeLists.txt: install the binary --- CMakeLists.txt | 6 ++++++ README.md | 3 +++ 2 files changed, 9 insertions(+) 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: -- cgit v1.2.3-70-g09d2