diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-04-20 16:28:20 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-04-23 19:55:04 +0300 |
commit | 5cce3eaf9157a51e5c76adec1b4cb9599f57e503 (patch) | |
tree | 143f2fc4cd30f16f0831a2e6565fe6467ae1886f /CMakeLists.txt | |
parent | 66d6375c3d81383c74be5b0fee22a2c7f5022f1e (diff) |
Plugins: Add a relative plugin search path on Linux
This fixes installations where the client is not installed in the same prefix as Qt
Fixes: #7801
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b94b8390..0c0f72119 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,12 +21,16 @@ include(KDECompilerSettings NO_POLICY_SCOPE) set(CMAKE_POSITION_INDEPENDENT_CODE ON) +find_package(Qt5 REQUIRED COMPONENTS Core) + if(UNIT_TESTING) message(DEPRECATION "Setting UNIT_TESTING is deprecated please use BUILD_TESTING") set(BUILD_TESTING TRUE) endif() include(CTest) + +include(OCConfigPluginDir) include("${CMAKE_CURRENT_LIST_DIR}/THEME.cmake") set(synclib_NAME "${APPLICATION_EXECUTABLE}sync") |