CMake: apply gersemi to libcalamares
Since this CMakeLists.txt writes out a C program, the formatting is a bit weird; just start the written TU with a blank line to make gersemi happy and keep the C-code aligned.
This commit is contained in:
parent
8de565f269
commit
66cc1a74ec
@ -20,12 +20,15 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CalamaresVersionX.h.in ${CMAKE_CURREN
|
||||
# Map the available translations names into a suitable constexpr list
|
||||
# of names in C++. This gets us Calamares::Locale::availableLanguages,
|
||||
# a QStringList of names.
|
||||
set(_names_tu "#ifndef CALAMARES_TRANSLATIONS_H
|
||||
set(_names_tu
|
||||
"
|
||||
#ifndef CALAMARES_TRANSLATIONS_H
|
||||
#define CALAMARES_TRANSLATIONS_H
|
||||
#include <QStringList>
|
||||
namespace {
|
||||
static const QStringList availableLanguageList{
|
||||
")
|
||||
"
|
||||
)
|
||||
foreach(l ${CALAMARES_TRANSLATION_LANGUAGES})
|
||||
string(APPEND _names_tu "\"${l}\",\n")
|
||||
endforeach()
|
||||
@ -256,7 +259,11 @@ calamares_add_test(libcalamaresnetworktest SOURCES network/Tests.cpp)
|
||||
calamares_add_test(libcalamarespackagestest SOURCES packages/Tests.cpp)
|
||||
|
||||
if(KPMcore_FOUND)
|
||||
calamares_add_test(libcalamarespartitiontest SOURCES partition/Global.cpp partition/Tests.cpp LIBRARIES calamares::kpmcore)
|
||||
calamares_add_test(
|
||||
libcalamarespartitiontest
|
||||
SOURCES partition/Global.cpp partition/Tests.cpp
|
||||
LIBRARIES calamares::kpmcore
|
||||
)
|
||||
calamares_add_test(libcalamarespartitionkpmtest SOURCES partition/KPMTests.cpp LIBRARIES calamares::kpmcore)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user