# Library add_library("ui" "src/init.cpp" "src/widgets/participant_row.cpp" "src/widgets/preferences.cpp" "src/widgets/turn_order_view.cpp" "src/windows/participant_editor.cpp" "src/windows/tracker.cpp" "src/windows/tracker/actions.cpp" "src/windows/tracker/event_handlers.cpp" $ ) add_library("turns::ui" ALIAS "ui") target_compile_options("ui" PUBLIC "$<$:-Wall>" "$<$:-Wextra>" "$<$:-Werror>" "$<$:-pedantic-errors>" ) target_include_directories("ui" PUBLIC "include" ) target_link_libraries("ui" PUBLIC "turns::adw" "turns::core" "turns::lang" "PkgConfig::gtkmm" ) enable_coverage("ui") # Resources add_subdirectory("res") # Tests get_target_property(TRANSLATIONS_BINARY_DIR "lang" BINARY_DIR) add_executable("ui-tests" "tests/gtk_test_init.cpp" "tests/widgets/participant_row.cpp" "tests/windows/participant_editor.cpp" "tests/windows/resources.cpp" "tests/windows/tracker.cpp" ) target_compile_definitions("ui-tests" PUBLIC "TESTLOCALEDIR=\"${TRANSLATIONS_BINARY_DIR}\"" ) target_link_libraries("ui-tests" PRIVATE "Catch2::Catch2WithMain" "$<$:-Wl,--whole-archive>" "turns::ui" "$<$:-Wl,--no-whole-archive>" ) target_link_options("ui-tests" PRIVATE "$<$,$>:--coverage>" ) catch_discover_tests("ui-tests")