diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-29 12:31:54 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-29 12:31:54 +0200 |
| commit | 4e555fdbda6b9f5ea6c3dc29e16b992a0fe6e556 (patch) | |
| tree | 4cc00cfab080091d4336d7a70b389b451bb73168 /gui/CMakeLists.txt | |
| parent | 0a41b826c16a5a0a079c308118ffcf7926df1f45 (diff) | |
| download | turns-4e555fdbda6b9f5ea6c3dc29e16b992a0fe6e556.tar.xz turns-4e555fdbda6b9f5ea6c3dc29e16b992a0fe6e556.zip | |
gui: reintroduce basic testing skeleton
Diffstat (limited to 'gui/CMakeLists.txt')
| -rw-r--r-- | gui/CMakeLists.txt | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 3753979..928ff1a 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -74,8 +74,17 @@ target_include_directories("gui_impl" PUBLIC target_link_libraries("gui_impl" PUBLIC "resources" + "adwaitamm::adwaitamm" + "turns::mm" + + "PkgConfig::glib" + "PkgConfig::glibmm" + + "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--whole-archive>" + "resources" + "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--no-whole-archive>" ) target_compile_definitions("gui_impl" PUBLIC @@ -100,15 +109,6 @@ target_include_directories("gui" PUBLIC target_link_libraries("gui" PUBLIC "gui_impl" - - "adwaitamm::adwaitamm" - "PkgConfig::glib" - "PkgConfig::glibmm" - "turns::mm" - - "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--whole-archive>" - "resources" - "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--no-whole-archive>" ) set_target_properties("gui" PROPERTIES @@ -139,3 +139,18 @@ install(FILES ) install(TARGETS "gui") + +# Tests + +add_executable("gui-tests" + "tests/gtk-test.cpp" +) + +target_link_libraries("gui-tests" PRIVATE + "gui_impl" + "Catch2::Catch2WithMain" +) + +target_compile_definitions("resources" PUBLIC + "TESTLOCALEDIR=\"${CMAKE_CURRENT_BINARY_DIR}/locale>\"" +)
\ No newline at end of file |
