From c71df5baa5fb161a7d873912d27773ab8b2e4212 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 9 Nov 2015 18:57:47 -0200 Subject: Don't rely on CMAKE_AUTOUIC Some old CMakes that we use had problems with it, change to use the qt5_wrap_ui macro that's bundled with Qt. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'desktop-widgets/preferences') diff --git a/desktop-widgets/preferences/CMakeLists.txt b/desktop-widgets/preferences/CMakeLists.txt index 4e506ed73..7a934a2a5 100644 --- a/desktop-widgets/preferences/CMakeLists.txt +++ b/desktop-widgets/preferences/CMakeLists.txt @@ -4,7 +4,15 @@ include_directories(. ${CMAKE_BINARY_DIR} ) -file(GLOB SUBSURFACE_PREFERENCES_UI *.ui) +set(SUBSURFACE_PREFERENCES_UI + preferences_defaults.ui + preferences_graph.ui + preferences_network.ui + preferences_units.ui + prefs_georeference.ui + prefs_language.ui +) + qt5_wrap_ui(SUBSURFACE_PREFERENCES_UI_HDRS ${SUBSURFACE_PREFERENCES_UI}) source_group("Subsurface Interface Files" FILES ${SUBSURFACE_PREFERENCES_UI}) -- cgit v1.2.3-70-g09d2