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
|
|
|
|
#
|
2016-11-05 22:11:57 +01:00
|
|
|
find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network )
|
2015-05-14 18:00:26 +02:00
|
|
|
|
2018-01-13 21:26:31 +01:00
|
|
|
find_package( LIBPARTED )
|
|
|
|
if ( LIBPARTED_FOUND )
|
|
|
|
set( PARTMAN_SRC checker/partman_devices.c )
|
2021-08-26 16:39:55 +02:00
|
|
|
set( PARTMAN_LIB ${LIBPARTED_LIBRARY} )
|
2018-01-13 21:26:31 +01:00
|
|
|
else()
|
|
|
|
set( PARTMAN_SRC )
|
2021-08-26 16:39:55 +02:00
|
|
|
set( PARTMAN_LIB )
|
2018-01-13 21:26:31 +01:00
|
|
|
add_definitions( -DWITHOUT_LIBPARTED )
|
|
|
|
endif()
|
|
|
|
|
2015-05-13 12:44:11 +02: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
|
|
|
|
SOURCES
|
2021-08-26 16:39:55 +02:00
|
|
|
checker/GeneralRequirements.cpp
|
|
|
|
${PARTMAN_SRC}
|
2021-08-24 10:24:11 +02:00
|
|
|
Config.cpp
|
|
|
|
Tests.cpp
|
|
|
|
LIBRARIES
|
2021-08-26 16:39:55 +02:00
|
|
|
${PARTMAN_LIB}
|
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Network
|
2021-08-24 10:24:11 +02:00
|
|
|
Qt5::Widgets
|
|
|
|
Calamares::calamaresui
|
|
|
|
)
|