diff options
Diffstat (limited to 'test_support')
| -rw-r--r-- | test_support/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | test_support/src/glib_main.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test_support/CMakeLists.txt b/test_support/CMakeLists.txt index ce77a90..447032d 100644 --- a/test_support/CMakeLists.txt +++ b/test_support/CMakeLists.txt @@ -18,6 +18,7 @@ target_compile_definitions("test_support-glib" PUBLIC target_link_libraries("test_support-glib" PUBLIC "PkgConfig::glibmm" + "PkgConfig::giomm" ) # GTK test support diff --git a/test_support/src/glib_main.cpp b/test_support/src/glib_main.cpp index d224bad..b9dc858 100644 --- a/test_support/src/glib_main.cpp +++ b/test_support/src/glib_main.cpp @@ -1,10 +1,19 @@ #include <catch2/catch_session.hpp> +#include <giomm/init.h> #include <glibmm/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 |
