calamares/src/modules/welcome/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
CMake
Raw Normal View History

# === This file is part of Calamares - <https://calamares.io> ===
#
# 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)
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})
else()
2022-02-08 16:18:47 +01:00
set(PARTMAN_SRC)
set(PARTMAN_LIB)
add_definitions(-DWITHOUT_LIBPARTED)
endif()
2022-02-08 16:18:47 +01:00
calamares_add_plugin(welcome
2014-06-24 12:41:58 +02:00
TYPE viewmodule
EXPORT_MACRO PLUGINDLLEXPORT_PRO
SOURCES
checker/CheckerContainer.cpp
checker/GeneralRequirements.cpp
checker/ResultDelegate.cpp
checker/ResultsListWidget.cpp
${PARTMAN_SRC}
WelcomeViewStep.cpp
Config.cpp
Config.h
WelcomePage.cpp
UI
WelcomePage.ui
RESOURCES
welcome.qrc
2016-12-07 16:37:29 +01:00
LINK_PRIVATE_LIBRARIES
${PARTMAN_LIB}
Qt5::DBus
Qt5::Network
SHARED_LIB
)
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
)