mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
refactor(wayland): seperate cmake files for modularity
This commit is contained in:
28 files changed
+32
-33
No files matched your search
+1
-33
@@ -21,38 +21,6 @@ endif()
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Gui Qml Quick QuickControls2)
|
||||
|
||||
if (LAYERSHELL)
|
||||
find_package(LayerShellQt REQUIRED)
|
||||
endif()
|
||||
|
||||
qt_standard_project_setup(REQUIRES 6.6)
|
||||
|
||||
qt_add_executable(quickshell
|
||||
src/cpp/main.cpp
|
||||
src/cpp/shell.cpp
|
||||
src/cpp/variants.cpp
|
||||
src/cpp/rootwrapper.cpp
|
||||
src/cpp/proxywindow.cpp
|
||||
src/cpp/reload.cpp
|
||||
src/cpp/rootwrapper.cpp
|
||||
src/cpp/qmlglobal.cpp
|
||||
src/cpp/qmlscreen.cpp
|
||||
src/cpp/watcher.cpp
|
||||
src/cpp/region.cpp
|
||||
src/cpp/persistentprops.cpp
|
||||
src/cpp/shellwindow.cpp
|
||||
)
|
||||
|
||||
qt_add_qml_module(quickshell URI QuickShell)
|
||||
|
||||
# qml type registration requires this
|
||||
target_include_directories(quickshell PRIVATE src/cpp)
|
||||
|
||||
target_link_libraries(quickshell PRIVATE Qt6::Gui Qt6::Qml Qt6::Quick Qt6::QuickControls2)
|
||||
|
||||
if (LAYERSHELL)
|
||||
target_link_libraries(quickshell PRIVATE LayerShellQtInterface)
|
||||
target_compile_definitions(quickshell PRIVATE CONF_LAYERSHELL)
|
||||
|
||||
target_sources(quickshell PRIVATE src/cpp/layershell.cpp)
|
||||
endif()
|
||||
add_subdirectory(src/core)
|
||||
@@ -0,0 +1,31 @@
|
||||
qt_add_executable(quickshell
|
||||
main.cpp
|
||||
shell.cpp
|
||||
variants.cpp
|
||||
rootwrapper.cpp
|
||||
proxywindow.cpp
|
||||
reload.cpp
|
||||
rootwrapper.cpp
|
||||
qmlglobal.cpp
|
||||
qmlscreen.cpp
|
||||
watcher.cpp
|
||||
region.cpp
|
||||
persistentprops.cpp
|
||||
shellwindow.cpp
|
||||
)
|
||||
|
||||
qt_add_qml_module(quickshell URI QuickShell)
|
||||
|
||||
# qml type registration requires this
|
||||
target_include_directories(quickshell PRIVATE src/core)
|
||||
|
||||
target_link_libraries(quickshell PRIVATE Qt6::Gui Qt6::Qml Qt6::Quick Qt6::QuickControls2)
|
||||
|
||||
if (LAYERSHELL)
|
||||
find_package(LayerShellQt REQUIRED)
|
||||
|
||||
target_link_libraries(quickshell PRIVATE LayerShellQtInterface)
|
||||
target_compile_definitions(quickshell PRIVATE CONF_LAYERSHELL)
|
||||
|
||||
target_sources(quickshell PRIVATE layershell.cpp)
|
||||
endif()
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user