aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-27 18:34:35 +0300
committerlink2xt <link2xt@testrun.org>2021-03-27 18:34:35 +0300
commit5b68d8366586ed5c90615a287dc61793491a6226 (patch)
tree1472c24fe06193f6782ad6260a35c0abf399a70f
parent598b2d41b1fa47c2ec05a1b5eff4b1d7245c0143 (diff)
downloadkdeltachat-5b68d8366586ed5c90615a287dc61793491a6226.tar.gz
kdeltachat-5b68d8366586ed5c90615a287dc61793491a6226.zip
Autoformat CMakeLists.txt
-rw-r--r--CMakeLists.txt28
1 files changed, 18 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80b1799..c6209f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,8 +15,14 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Widgets Quick REQUIRED)
-find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Widgets Quick REQUIRED)
+find_package(
+ QT NAMES Qt6 Qt5
+ COMPONENTS Core Widgets Quick
+ REQUIRED)
+find_package(
+ Qt${QT_VERSION_MAJOR}
+ COMPONENTS Core Widgets Quick
+ REQUIRED)
find_package(PkgConfig REQUIRED)
# Ahead-of-Time Compilation
@@ -25,7 +31,8 @@ find_package(PkgConfig REQUIRED)
find_package(Qt5QuickCompiler)
qtquick_compiler_add_resources(KDELTACHAT_QML_QRC qml.qrc)
-add_executable(kdeltachat
+add_executable(
+ kdeltachat
main.cpp
message.cpp
context.cpp
@@ -36,21 +43,22 @@ add_executable(kdeltachat
eventemitter.cpp
lot.cpp
dcevent.cpp
- ${KDELTACHAT_QML_QRC}
-)
+ ${KDELTACHAT_QML_QRC})
find_package(Threads REQUIRED)
find_package(KF5Kirigami2 REQUIRED)
pkg_check_modules(DeltaChat IMPORTED_TARGET deltachat)
-target_compile_definitions(kdeltachat
+target_compile_definitions(
+ kdeltachat
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
-target_link_libraries(kdeltachat
- PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Quick Qt${QT_VERSION_MAJOR}::Widgets
+target_link_libraries(
+ kdeltachat
+ PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Quick
+ Qt${QT_VERSION_MAJOR}::Widgets
PRIVATE Threads::Threads
PRIVATE KF5::Kirigami2
- PRIVATE PkgConfig::DeltaChat
- m dl)
+ PRIVATE PkgConfig::DeltaChat m dl)
install(TARGETS kdeltachat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})