diff --git a/.gitignore b/.gitignore index 281ac916..429aa9c1 100644 --- a/.gitignore +++ b/.gitignore @@ -261,3 +261,4 @@ cython_debug/ /ThirdParty/qml-archive/** /ThirdParty/qml-plausible/ /ThirdParty/ffmpeg/** +/ThirdParty/qt-layer-shell/** diff --git a/ThirdParty/CMakeLists.txt b/ThirdParty/CMakeLists.txt index 64c1f619..01ad0a83 100644 --- a/ThirdParty/CMakeLists.txt +++ b/ThirdParty/CMakeLists.txt @@ -8,13 +8,27 @@ FetchContent_Populate( # https://bugreports.qt.io/browse/QTCREATORBUG-27083 SOURCE_DIR ${THIRD_PARTY_PATH}/QArchive) - FetchContent_Populate( - qml-plausible - GIT_REPOSITORY https://gitlab.com/kelteseth/qml-plausible.git - GIT_TAG 5069ba3bf25663ea06be8b94c398d6c61058d4d5 - # Workaround because: 1. QtCreator cannot handle QML_ELEMENT stuff when it is in bin folder - # https://bugreports.qt.io/browse/QTCREATORBUG-27083 - SOURCE_DIR ${THIRD_PARTY_PATH}/qml-plausible) +FetchContent_Populate( + qml-plausible + GIT_REPOSITORY https://gitlab.com/kelteseth/qml-plausible.git + GIT_TAG 5069ba3bf25663ea06be8b94c398d6c61058d4d5 + # Workaround because: 1. QtCreator cannot handle QML_ELEMENT stuff when it is in bin folder + # https://bugreports.qt.io/browse/QTCREATORBUG-27083 + SOURCE_DIR ${THIRD_PARTY_PATH}/qml-plausible) + + add_subdirectory(qml-plausible) -add_subdirectory(QArchive) \ No newline at end of file +add_subdirectory(QArchive) + +if(UNIX AND NOT APPLE) +FetchContent_Populate( + qt-layer-shell + GIT_REPOSITORY https://github.com/KDE/layer-shell-qt.git + GIT_TAG 721c0ae334554eb2396a2d4d3358f896b8c77412 + # Workaround because: 1. QtCreator cannot handle QML_ELEMENT stuff when it is in bin folder + # https://bugreports.qt.io/browse/QTCREATORBUG-27083 + SOURCE_DIR ${THIRD_PARTY_PATH}/qt-layer-shell) + add_subdirectory(qt-layer-shell) + +endif() \ No newline at end of file