mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2024-12-26 22:19:50 +01:00
Vaxry
b5b415a168
this sucks, but I don't know how to do this better tbh. Will definitely not work if we want to have multiple dialogs at once.
38 lines
957 B
CMake
38 lines
957 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(hyprland-update-screen VERSION ${VER} LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
|
|
|
|
qt_standard_project_setup(REQUIRES 6.5)
|
|
|
|
qt_add_executable(hyprland-update-screen
|
|
main.cpp
|
|
Dialog.cpp
|
|
Dialog.hpp
|
|
UpdateScreen.cpp
|
|
)
|
|
|
|
qt_add_qml_module(hyprland-update-screen
|
|
URI org.hyprland.update-screen
|
|
VERSION 1.0
|
|
QML_FILES main.qml dialogMain.qml
|
|
)
|
|
|
|
target_link_libraries(hyprland-update-screen PRIVATE
|
|
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
|
|
)
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
install(TARGETS hyprland-update-screen
|
|
BUNDLE DESTINATION .
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
)
|