-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (30 loc) · 1.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#SPDX-License-Identifier: BSD-2-Clause
#SPDX-FileCopyrightText: 2023 danilo agostini <[email protected]>
cmake_minimum_required(VERSION 3.16)
project(kiview VERSION 1.1)
set(QT_MIN_VERSION "6.5.0")
set(KF_MIN_VERSION "6.0.0")
#flatpak
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
#flatpak
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
# set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH}) #qt6
include(CMakePrintHelpers)
cmake_print_variables(CMAKE_CURRENT_SOURCE_DIR)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMInstallIcons)
include(ECMAddAppIcon)
find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Quick Test Gui QuickControls2 Widgets DBus WebEngineQuick WebEngineCore )
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS I18n Kirigami2 CoreAddons )
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_subdirectory(src)
add_subdirectory(icons)
ki18n_install(po)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)