summaryrefslogtreecommitdiff
path: root/test_support
diff options
context:
space:
mode:
Diffstat (limited to 'test_support')
-rw-r--r--test_support/CMakeLists.txt66
-rw-r--r--test_support/src/glib_main.cpp20
-rw-r--r--test_support/src/gtk_main.cpp18
-rw-r--r--test_support/src/intl_main.cpp13
4 files changed, 0 insertions, 117 deletions
diff --git a/test_support/CMakeLists.txt b/test_support/CMakeLists.txt
deleted file mode 100644
index 447032d..0000000
--- a/test_support/CMakeLists.txt
+++ /dev/null
@@ -1,66 +0,0 @@
-get_target_property(TRANSLATIONS_BINARY_DIR "lang" BINARY_DIR)
-
-# Glib test support
-
-add_library("test_support-glib" OBJECT
- "src/glib_main.cpp"
-)
-
-add_library("turns::glib-test-main" ALIAS "test_support-glib")
-
-target_compile_features("test_support-glib" PRIVATE
- "cxx_std_23"
-)
-
-target_compile_definitions("test_support-glib" PUBLIC
- "TESTLOCALEDIR=\"${TRANSLATIONS_BINARY_DIR}\""
-)
-
-target_link_libraries("test_support-glib" PUBLIC
- "PkgConfig::glibmm"
- "PkgConfig::giomm"
-)
-
-# GTK test support
-
-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_compile_definitions("test_support-gtk" PUBLIC
- "TESTLOCALEDIR=\"${TRANSLATIONS_BINARY_DIR}\""
-)
-
-target_link_libraries("test_support-gtk" PUBLIC
- "turns::lang"
-
- "PkgConfig::adwaita"
- "PkgConfig::gtkmm"
-)
-
-# Intl test support
-
-add_library("test_support-intl" OBJECT
- "src/intl_main.cpp"
-)
-
-add_library("turns::intl-test-main" ALIAS "test_support-intl")
-
-target_compile_features("test_support-intl" PRIVATE
- "cxx_std_23"
-)
-
-target_compile_definitions("test_support-intl" PUBLIC
- "TESTLOCALEDIR=\"${TRANSLATIONS_BINARY_DIR}\""
-)
-
-target_link_libraries("test_support-intl" PUBLIC
- "Intl::Intl"
- "turns::lang"
-)
diff --git a/test_support/src/glib_main.cpp b/test_support/src/glib_main.cpp
deleted file mode 100644
index c2fe10f..0000000
--- a/test_support/src/glib_main.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <catch2/catch_session.hpp>
-
-#include <glibmm/init.h>
-
-#include <giomm/init.h>
-
-namespace turns::tests
-{
- auto register_types() -> void;
-} // namespace turns::tests
-
-auto main(int argc, char * argv[]) -> int
-{
- Gio::init();
- Glib::init();
-
- turns::tests::register_types();
-
- return Catch::Session().run(argc, argv);
-} \ No newline at end of file
diff --git a/test_support/src/gtk_main.cpp b/test_support/src/gtk_main.cpp
deleted file mode 100644
index 4656c12..0000000
--- a/test_support/src/gtk_main.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <catch2/catch_session.hpp>
-
-#include <gtkmm/init.h>
-
-#include <adwaita.h>
-
-auto main(int argc, char * argv[]) -> int
-{
- setlocale(LC_ALL, "");
- bindtextdomain("turns", TESTLOCALEDIR);
- bind_textdomain_codeset("turns", "UTF-8");
- textdomain("turns");
-
- Gtk::init_gtkmm_internals();
- adw_init();
-
- return Catch::Session().run(argc, argv);
-} \ No newline at end of file
diff --git a/test_support/src/intl_main.cpp b/test_support/src/intl_main.cpp
deleted file mode 100644
index 4a74ac5..0000000
--- a/test_support/src/intl_main.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <catch2/catch_session.hpp>
-
-#include <libintl.h>
-
-auto main(int argc, char * argv[]) -> int
-{
- setlocale(LC_ALL, "");
- bindtextdomain("turns", TESTLOCALEDIR);
- bind_textdomain_codeset("turns", "UTF-8");
- textdomain("turns");
-
- return Catch::Session().run(argc, argv);
-} \ No newline at end of file