summaryrefslogtreecommitdiff
path: root/ui/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ui/CMakeLists.txt')
-rw-r--r--ui/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt
index ed27699..736db84 100644
--- a/ui/CMakeLists.txt
+++ b/ui/CMakeLists.txt
@@ -9,8 +9,6 @@ add_library("ui"
"src/windows/tracker.cpp"
"src/windows/tracker/actions.cpp"
"src/windows/tracker/event_handlers.cpp"
-
- $<TARGET_OBJECTS:ui-res>
)
add_library("turns::ui" ALIAS "ui")
@@ -34,11 +32,15 @@ target_link_libraries("ui" PUBLIC
"PkgConfig::gtkmm"
)
-enable_coverage("ui")
+file(GLOB_RECURSE UI_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/src" CONFIGURE_DEPENDS "**.ui")
-# Resources
+target_add_glib_resources("ui"
+ PREFIX "/ch/arknet/Turns/"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
+ UI_FILES ${UI_FILES}
+)
-add_subdirectory("res")
+enable_coverage("ui")
# Tests