2015-12-17 19:14:13 +00:00
|
|
|
if (ANDROID)
|
|
|
|
set(FACEBOOK_INTEGRATION "")
|
|
|
|
elseif (${FBSUPPORT})
|
|
|
|
add_definitions(-DFBSUPPORT)
|
|
|
|
set(FACEBOOK_INTEGRATION facebook_integration)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2015-11-09 20:57:47 +00:00
|
|
|
|
2015-12-17 19:14:13 +00:00
|
|
|
set(FACEBOOK_PLUGIN_UI
|
|
|
|
facebookconnectwidget.ui
|
|
|
|
socialnetworksdialog.ui
|
|
|
|
)
|
2015-10-29 22:12:36 +00:00
|
|
|
|
2015-12-17 19:14:13 +00:00
|
|
|
set(FACEBOOK_PLUGIN_SRCS
|
|
|
|
facebook_integration.cpp
|
|
|
|
facebookconnectwidget.cpp
|
|
|
|
)
|
2015-11-09 20:57:47 +00:00
|
|
|
|
2015-12-17 19:14:13 +00:00
|
|
|
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()
|