hyprland-qtutils/utils/update-screen/CMakeLists.txt

39 lines
957 B
Text
Raw Normal View History

2024-12-05 21:55:52 +01:00
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
2024-12-05 21:55:52 +01:00
UpdateScreen.cpp
)
qt_add_qml_module(hyprland-update-screen
URI org.hyprland.update-screen
VERSION 1.0
QML_FILES main.qml dialogMain.qml
2024-12-05 21:55:52 +01:00
)
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}
)