mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
77 lines
1.6 KiB
CMake
77 lines
1.6 KiB
CMake
|
cmake_minimum_required(VERSION 3.16.0)
|
||
|
|
||
|
project(forceblur)
|
||
|
set(PROJECT_VERSION "1.2.0")
|
||
|
set(PROJECT_VERSION_MAJOR 0)
|
||
|
|
||
|
set(KF_MIN_VERSION "5.240.0")
|
||
|
set(QT_MIN_VERSION "6.6.0")
|
||
|
set(QT_MAJOR_VERSION 6)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 20)
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||
|
|
||
|
if(NOT CMAKE_BUILD_TYPE)
|
||
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE)
|
||
|
endif()
|
||
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DQT_NO_DEBUG_OUTPUT")
|
||
|
|
||
|
find_package(ECM REQUIRED NO_MODULE)
|
||
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
|
||
|
|
||
|
include(FeatureSummary)
|
||
|
include(KDEInstallDirs)
|
||
|
include(KDECMakeSettings)
|
||
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
||
|
|
||
|
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
||
|
Gui
|
||
|
Core
|
||
|
DBus
|
||
|
UiTools
|
||
|
Widgets
|
||
|
OpenGL
|
||
|
Network
|
||
|
Xml
|
||
|
)
|
||
|
|
||
|
include_directories(${Qt6Widgets_INCLUDE_DIRS} ${Qt6Network_INCLUDE_DIRS} ${Qt6OpenGL_INCLUDE_DIRS} ${Qt6Xml_INCLUDE_DIRS})
|
||
|
add_definitions(${Qt6Widgets_DEFINITIONS})
|
||
|
|
||
|
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS
|
||
|
Config
|
||
|
ConfigWidgets
|
||
|
CoreAddons
|
||
|
Crash
|
||
|
#GlobalAccel
|
||
|
I18n
|
||
|
KIO
|
||
|
Service
|
||
|
#Init
|
||
|
Notifications
|
||
|
Service
|
||
|
WidgetsAddons
|
||
|
WindowSystem
|
||
|
GuiAddons
|
||
|
KCMUtils
|
||
|
|
||
|
)
|
||
|
find_package(KF6WindowSystem REQUIRED)
|
||
|
find_package(epoxy REQUIRED)
|
||
|
|
||
|
find_package(X11 REQUIRED)
|
||
|
find_package(XCB REQUIRED COMPONENTS XCB)
|
||
|
|
||
|
find_package(KWin REQUIRED COMPONENTS
|
||
|
kwineffects
|
||
|
)
|
||
|
|
||
|
find_package(KDecoration2 REQUIRED)
|
||
|
|
||
|
find_package(KWinDBusInterface CONFIG REQUIRED)
|
||
|
|
||
|
add_subdirectory(src)
|
||
|
|
||
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|