From 87d659ca1a14fe8cf4871b8db0f42d005964f565 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 12 Jul 2024 12:37:10 +0200 Subject: app/windows: add basic main window --- test_support/CMakeLists.txt | 14 ++++++++++++++ test_support/src/gtk_main.cpp | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test_support/CMakeLists.txt create mode 100644 test_support/src/gtk_main.cpp (limited to 'test_support') diff --git a/test_support/CMakeLists.txt b/test_support/CMakeLists.txt new file mode 100644 index 0000000..04bb256 --- /dev/null +++ b/test_support/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library("test_support-gtk" OBJECT + "src/gtk_main.cpp" +) + +add_library("turns::gtk-test-main" ALIAS "test_support-gtk") + +target_compile_features("test_support-gtk" PRIVATE + "cxx_std_23" +) + +target_link_libraries("test_support-gtk" PUBLIC + "PkgConfig::adwaita" + "PkgConfig::gtkmm" +) \ No newline at end of file diff --git a/test_support/src/gtk_main.cpp b/test_support/src/gtk_main.cpp new file mode 100644 index 0000000..02173f9 --- /dev/null +++ b/test_support/src/gtk_main.cpp @@ -0,0 +1,12 @@ +#include + +#include +#include + +auto main(int argc, char * argv[]) -> int +{ + Gtk::init_gtkmm_internals(); + adw_init(); + + return Catch::Session().run(argc, argv); +} \ No newline at end of file -- cgit v1.2.3