summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/plugins/facebook/CMakeLists.txt')
-rw-r--r--desktop-widgets/plugins/facebook/CMakeLists.txt33
1 files changed, 19 insertions, 14 deletions
diff --git a/desktop-widgets/plugins/facebook/CMakeLists.txt b/desktop-widgets/plugins/facebook/CMakeLists.txt
index eb0da754c..592700ad4 100644
--- a/desktop-widgets/plugins/facebook/CMakeLists.txt
+++ b/desktop-widgets/plugins/facebook/CMakeLists.txt
@@ -1,17 +1,22 @@
+if (ANDROID)
+ set(FACEBOOK_INTEGRATION "")
+elseif (${FBSUPPORT})
+ add_definitions(-DFBSUPPORT)
+ set(FACEBOOK_INTEGRATION facebook_integration)
+ include_directories(${CMAKE_CURRENT_BINARY_DIR})
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
+ set(FACEBOOK_PLUGIN_UI
+ facebookconnectwidget.ui
+ socialnetworksdialog.ui
+ )
-set(FACEBOOK_PLUGIN_UI
- facebookconnectwidget.ui
- socialnetworksdialog.ui
-)
+ set(FACEBOOK_PLUGIN_SRCS
+ facebook_integration.cpp
+ facebookconnectwidget.cpp
+ )
-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
+ 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)
+endif()