summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/plugins/facebook')
-rw-r--r--desktop-widgets/plugins/facebook/CMakeLists.txt14
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