From 059fa151856293a8b6bdf9b16d1b72f415f59df3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 2 Aug 2026 16:57:12 +0200 Subject: build: add CMake skeleton and dependency discovery --- src/CMakeLists.txt | 14 ++++++++++++++ src/main.cpp | 10 ++++++++++ src/main_placeholder.cpp | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 src/CMakeLists.txt create mode 100644 src/main.cpp create mode 100644 src/main_placeholder.cpp (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..e9e28e5 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(qtmaildir_lib STATIC + main_placeholder.cpp +) + +target_include_directories(qtmaildir_lib + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${NOTMUCH_INCLUDE_DIR}) + +target_link_libraries(qtmaildir_lib + PUBLIC Qt6::Widgets Qt6::WebEngineWidgets PkgConfig::GMIME ${NOTMUCH_LIBRARY}) + +add_executable(qtmaildir main.cpp) +target_link_libraries(qtmaildir PRIVATE qtmaildir_lib) + +install(TARGETS qtmaildir RUNTIME DESTINATION bin) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..9c7b977 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,10 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + QLabel label(QStringLiteral("qtmaildir")); + label.show(); + return app.exec(); +} diff --git a/src/main_placeholder.cpp b/src/main_placeholder.cpp new file mode 100644 index 0000000..9ddb3f2 --- /dev/null +++ b/src/main_placeholder.cpp @@ -0,0 +1,3 @@ +// Placeholder so the library target has a source file before real code lands. +// Removed in Task 2. +namespace { int qtmaildir_placeholder = 0; } -- cgit v1.2.3