Don't use ECM for plugin

This commit is contained in:
outfoxxed 2024-01-24 01:43:22 -08:00
parent 97b759c92a
commit 2a17537738
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 14 additions and 17 deletions

View file

@ -10,9 +10,6 @@ set(PROJECT_VERSION_MAJOR 6)
set(CMAKE_C_STANDARD 99)
set(QT_MIN_VERSION "6.6.0")
#set(KF6_MIN_VERSION "5.240.0")
#set(KDE_COMPILERSETTINGS_LEVEL "5.82")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@ -23,14 +20,14 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMSetupVersion)
include(ECMDeprecationSettings)
#include(ECMDeprecationSettings)
include(ECMGenerateHeaders)
include(CMakePackageConfigHelpers)
#include(FeatureSummary)
include(GenerateExportHeader)
#include(KDEClangFormat)
include(ECMQtDeclareLoggingCategory)
include(ECMQmlModule)
#include(ECMQmlModule)
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS WaylandClient Qml)
@ -55,9 +52,9 @@ ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX LAYERSHELLQT
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
#kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
ecm_set_disabled_deprecation_versions(QT 6.5
KF 5.240
)
#ecm_set_disabled_deprecation_versions(QT 6.5
# KF 5.240
#)
add_subdirectory(src)
#add_subdirectory(tests)

View file

@ -47,13 +47,13 @@ if (TARGET Qt::XkbCommonSupportPrivate)
target_link_libraries(layer-shell Qt::XkbCommonSupportPrivate)
endif()
ecm_generate_headers(LayerShellQt_HEADERS
HEADER_NAMES
Shell
Window
RELATIVE interfaces/
REQUIRED_HEADERS LayerShellQt_HEADERS
)
#ecm_generate_headers(LayerShellQt_HEADERS
# HEADER_NAMES
# Shell
# Window
# RELATIVE interfaces/
# REQUIRED_HEADERS LayerShellQt_HEADERS
#)
generate_export_header(LayerShellQtInterface

View file

@ -3,10 +3,10 @@
set(BUILD_SHARED_LIBS ON)
ecm_add_qml_module(LayerShellQtQml
qt_add_qml_module(LayerShellQtQml
URI "org.kde.layershell"
VERSION 1.0
SOURCES layershellqtplugin.cpp)
target_link_libraries(LayerShellQtQml PRIVATE Qt::Qml LayerShellQtInterface)
ecm_finalize_qml_module(LayerShellQtQml DESTINATION ${KDE_INSTALL_QMLDIR})
#ecm_finalize_qml_module(LayerShellQtQml DESTINATION ${KDE_INSTALL_QMLDIR})