aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/CMakeLists.txt
blob: 592700ad45e38b4591beaa4d8df3c94cebb93c24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if (ANDROID)
	set(FACEBOOK_INTEGRATION "")
elseif (${FBSUPPORT})
	add_definitions(-DFBSUPPORT)
	set(FACEBOOK_INTEGRATION facebook_integration)
	include_directories(${CMAKE_CURRENT_BINARY_DIR})

	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)
endif()