1cd9b93a22
- point to main Calamares site in the 'part of' headers instead of to github (this is the "this file is part of Calamares" opening line for most files). - remove boilerplate from all source files, CMake modules and completions, this is the 3-paragraph summary of the GPL-3.0-or-later, which has a meaning entirely covered by the SPDX tag.
46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
# === This file is part of Calamares - <https://calamares.io> ===
|
|
#
|
|
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
#
|
|
find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED DBus Network )
|
|
|
|
find_package( LIBPARTED )
|
|
if ( LIBPARTED_FOUND )
|
|
set( PARTMAN_SRC checker/partman_devices.c )
|
|
set( CHECKER_LINK_LIBRARIES ${LIBPARTED_LIBRARY} )
|
|
else()
|
|
set( PARTMAN_SRC )
|
|
set( CHECKER_LINK_LIBRARIES )
|
|
add_definitions( -DWITHOUT_LIBPARTED )
|
|
endif()
|
|
|
|
set( CHECKER_SOURCES
|
|
checker/CheckerContainer.cpp
|
|
checker/GeneralRequirements.cpp
|
|
checker/ResultWidget.cpp
|
|
checker/ResultsListWidget.cpp
|
|
${PARTMAN_SRC}
|
|
)
|
|
|
|
calamares_add_plugin( welcome
|
|
TYPE viewmodule
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
SOURCES
|
|
${CHECKER_SOURCES}
|
|
WelcomeViewStep.cpp
|
|
Config.cpp
|
|
Config.h
|
|
WelcomePage.cpp
|
|
UI
|
|
WelcomePage.ui
|
|
RESOURCES
|
|
welcome.qrc
|
|
LINK_PRIVATE_LIBRARIES
|
|
calamaresui
|
|
${CHECKER_LINK_LIBRARIES}
|
|
Qt5::DBus
|
|
Qt5::Network
|
|
SHARED_LIB
|
|
)
|