calamares/src/modules/fsresizer/CMakeLists.txt

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

39 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
include(KPMcoreHelper)
if(KPMcore_FOUND)
2022-02-08 16:18:47 +01:00
include_directories(${KPMCORE_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/src/modules/partition)
# The PartitionIterator is a small class, and it's easiest -- but also a
# gross hack -- to just compile it again from the partition module tree.
2022-02-08 16:18:47 +01:00
calamares_add_plugin(fsresizer
TYPE job
EXPORT_MACRO PLUGINDLLEXPORT_PRO
SOURCES
ResizeFSJob.cpp
LINK_PRIVATE_LIBRARIES
calamares::kpmcore
COMPILE_DEFINITIONS ${KPMcore_API_DEFINITIONS}
SHARED_LIB
)
calamares_add_test(
fsresizertest
2022-02-08 16:18:47 +01:00
SOURCES Tests.cpp
LIBRARIES
2022-02-08 16:18:47 +01:00
calamares_job_fsresizer # From above
2021-07-26 15:08:29 +02:00
yamlcpp::yamlcpp
DEFINITIONS ${KPMcore_API_DEFINITIONS}
)
else()
2022-02-08 16:18:47 +01:00
if(NOT KPMcore_FOUND)
calamares_skip_module( "fsresizer (missing suitable KPMcore)" )
else()
calamares_skip_module( "fsresizer (missing dependencies for KPMcore)" )
endif()
endif()