diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index d0de3b5d9..fa40f3361 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -60,7 +60,13 @@ geninterface(${PROJECT_SOURCE_DIR}/plugins/virtualmonitor/virtualmonitorplugin.h geninterface(${PROJECT_SOURCE_DIR}/plugins/photo/photoplugin.h photointerface) geninterface(${PROJECT_SOURCE_DIR}/plugins/clipboard/clipboardplugin.h deviceclipboardinterface) -add_library(kdeconnectinterfaces ${libkdeconnect_SRC}) +if ("${QT_MAJOR_VERSION}" STREQUAL "6") + add_library(kdeconnectinterfaces STATIC) +else() + add_library(kdeconnectinterfaces) +endif() + +target_sources(kdeconnectinterfaces PRIVATE ${libkdeconnect_SRC}) set_target_properties(kdeconnectinterfaces PROPERTIES VERSION ${KDECONNECT_VERSION} SOVERSION ${KDECONNECT_VERSION_MAJOR}