2020-08-25 16:05:56 +02:00
|
|
|
# === This file is part of Calamares - <https://calamares.io> ===
|
2020-08-26 00:24:52 +02:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
#
|
2022-02-08 16:18:47 +01:00
|
|
|
find_package(Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network)
|
2015-05-14 18:00:26 +02:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
find_package(LIBPARTED)
|
|
|
|
if(LIBPARTED_FOUND)
|
|
|
|
set(PARTMAN_SRC checker/partman_devices.c)
|
|
|
|
set(PARTMAN_LIB ${LIBPARTED_LIBRARY})
|
2018-01-13 21:26:31 +01:00
|
|
|
else()
|
2022-02-08 16:18:47 +01:00
|
|
|
set(PARTMAN_SRC)
|
|
|
|
set(PARTMAN_LIB)
|
|
|
|
add_definitions(-DWITHOUT_LIBPARTED)
|
2018-01-13 21:26:31 +01:00
|
|
|
endif()
|
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
calamares_add_plugin(welcome
|
2014-06-24 12:41:58 +02:00
|
|
|
TYPE viewmodule
|
2014-06-11 13:37:10 +02:00
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
2021-08-26 16:39:55 +02:00
|
|
|
checker/CheckerContainer.cpp
|
|
|
|
checker/GeneralRequirements.cpp
|
|
|
|
checker/ResultWidget.cpp
|
|
|
|
checker/ResultsListWidget.cpp
|
|
|
|
${PARTMAN_SRC}
|
2015-05-13 12:44:11 +02:00
|
|
|
WelcomeViewStep.cpp
|
2020-03-10 22:44:48 +01:00
|
|
|
Config.cpp
|
|
|
|
Config.h
|
2015-05-13 12:44:11 +02:00
|
|
|
WelcomePage.cpp
|
2014-06-11 13:37:10 +02:00
|
|
|
UI
|
2015-05-13 12:44:11 +02:00
|
|
|
WelcomePage.ui
|
2019-04-18 22:38:12 +02:00
|
|
|
RESOURCES
|
|
|
|
welcome.qrc
|
2016-12-07 16:37:29 +01:00
|
|
|
LINK_PRIVATE_LIBRARIES
|
2021-08-26 16:39:55 +02:00
|
|
|
${PARTMAN_LIB}
|
2018-01-13 21:26:31 +01:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Network
|
2014-06-11 13:37:10 +02:00
|
|
|
SHARED_LIB
|
|
|
|
)
|
2021-08-24 10:24:11 +02:00
|
|
|
|
|
|
|
calamares_add_test(
|
|
|
|
welcometest
|
2022-02-08 16:18:47 +01:00
|
|
|
SOURCES checker/GeneralRequirements.cpp ${PARTMAN_SRC} Config.cpp Tests.cpp
|
|
|
|
LIBRARIES ${PARTMAN_LIB} Qt5::DBus Qt5::Network Qt5::Widgets Calamares::calamaresui
|
2021-08-24 10:24:11 +02:00
|
|
|
)
|