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/plugins/facebook/CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/plugins') diff --git a/desktop-widgets/plugins/facebook/CMakeLists.txt b/desktop-widgets/plugins/facebook/CMakeLists.txt index c0175a26e..eb0da754c 100644 --- a/desktop-widgets/plugins/facebook/CMakeLists.txt +++ b/desktop-widgets/plugins/facebook/CMakeLists.txt @@ -1,7 +1,17 @@ -set(FACEBOOK_PLUGIN_SRCS facebook_integration.cpp facebookconnectwidget.cpp) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) -add_library(facebook_integration STATIC ${FACEBOOK_PLUGIN_SRCS}) +set(FACEBOOK_PLUGIN_UI + facebookconnectwidget.ui + socialnetworksdialog.ui +) + +set(FACEBOOK_PLUGIN_SRCS + facebook_integration.cpp + facebookconnectwidget.cpp +) +qt5_wrap_ui(FACEBOOK_PLUGIN_UI_SRCS ${FACEBOOK_PLUGIN_UI}) +add_library(facebook_integration STATIC ${FACEBOOK_PLUGIN_SRCS} ${FACEBOOK_PLUGIN_UI_SRCS}) target_link_libraries(facebook_integration ${QT_LIBRARIES}) add_dependencies(facebook_integration subsurface_corelib) \ No newline at end of file -- cgit v1.2.3-70-g09d2