summaryrefslogtreecommitdiff
path: root/ui/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ui/CMakeLists.txt')
-rw-r--r--ui/CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt
index 2532059..fa4bc02 100644
--- a/ui/CMakeLists.txt
+++ b/ui/CMakeLists.txt
@@ -38,20 +38,27 @@ 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::Catch2"
+ "Catch2::Catch2WithMain"
"$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--whole-archive>"
"turns::ui"
"$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--no-whole-archive>"
- "turns::gtk-test-main"
)
target_link_options("ui-tests" PRIVATE