diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-29 14:00:29 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-29 14:00:29 +0200 |
| commit | 1d74095f77cc19ba4886d502bbb7a290f9874c9f (patch) | |
| tree | 720d8627c073ab86ed19649c216e988db3a8efd7 /ui/CMakeLists.txt | |
| parent | ef0d0c5bbc4bdbe176a4bc83c352ffa2bd854922 (diff) | |
| download | turns-1d74095f77cc19ba4886d502bbb7a290f9874c9f.tar.xz turns-1d74095f77cc19ba4886d502bbb7a290f9874c9f.zip | |
ui: move UI builder files
Diffstat (limited to 'ui/CMakeLists.txt')
| -rw-r--r-- | ui/CMakeLists.txt | 12 |
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 |
