2021-02-27 22:04:30 +01:00
|
|
|
# === This file is part of Calamares - <https://calamares.io> ===
|
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2021 Anke Boersma <demm@kaosx.us>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
#
|
2022-02-08 16:18:47 +01:00
|
|
|
if(NOT WITH_QML)
|
2021-02-27 22:04:30 +01:00
|
|
|
calamares_skip_module( "finishedq (QML is not supported in this build)" )
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2023-09-03 22:39:30 +02:00
|
|
|
find_package(${qtname} ${QT_VERSION} CONFIG COMPONENTS DBus Network)
|
|
|
|
if(NOT TARGET ${qtname}::DBus OR NOT TARGET ${qtname}::Network)
|
2021-03-06 15:23:23 +01:00
|
|
|
calamares_skip_module( "finishedq (missing DBus or Network)" )
|
|
|
|
return()
|
|
|
|
endif()
|
2021-02-27 22:04:30 +01:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
set(_finished ${CMAKE_CURRENT_SOURCE_DIR}/../finished)
|
|
|
|
include_directories(${_finished})
|
2021-02-27 22:04:30 +01:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
calamares_add_plugin(finishedq
|
2021-02-27 22:04:30 +01:00
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
|
|
|
FinishedQmlViewStep.cpp
|
|
|
|
${_finished}/Config.cpp
|
|
|
|
RESOURCES
|
|
|
|
finishedq.qrc
|
|
|
|
LINK_PRIVATE_LIBRARIES
|
2023-09-03 22:39:30 +02:00
|
|
|
${qtname}::DBus
|
2021-02-27 22:04:30 +01:00
|
|
|
SHARED_LIB
|
|
|
|
)
|