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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-11-09 18:57:47 -02:00 committed by Dirk Hohndel
parent e1d43ade27
commit c71df5baa5
4 changed files with 56 additions and 5 deletions

View file

@ -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})