diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-11-09 18:57:47 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-09 18:00:56 -0800 |
commit | c71df5baa5fb161a7d873912d27773ab8b2e4212 (patch) | |
tree | 878fd4e5dd8533844f360c16a01ab353a14c551a /desktop-widgets/plugins/facebook | |
parent | e1d43ade275313f643b27b2c30fd372f6c6ccd02 (diff) | |
download | subsurface-c71df5baa5fb161a7d873912d27773ab8b2e4212.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/plugins/facebook')
-rw-r--r-- | desktop-widgets/plugins/facebook/CMakeLists.txt | 14 |
1 files changed, 12 insertions, 2 deletions
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 |