Fix building of Facebook support

No idea when this got broken. Fix seems like a hack as that variable
should get set in the plugin CMakeLists.txt. But it seems to work, so
"whatever".

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-09-22 17:12:00 -07:00
parent 78dc3a3efe
commit 131c5a2abe
3 changed files with 8 additions and 2 deletions

View file

@ -267,6 +267,9 @@ elseif(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable")
target_link_libraries(smtk2ssrf smtk_import)
endif()
if(FBSUPPORT)
set(FACEBOOK_INTEGRATION facebook_integration)
endif()
target_link_libraries(
${SUBSURFACE_TARGET}
subsurface_generated_ui

View file

@ -7,6 +7,11 @@ if(BTSUPPORT)
set(BT_SRC_FILES btdeviceselectiondialog.cpp)
endif()
if (FBSUPPORT)
add_definitions(-DFBSUPPORT)
endif()
include_directories(.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}

View file

@ -59,8 +59,6 @@
#if defined(FBSUPPORT)
#include "plugins/facebook/facebook_integration.h"
#include "socialnetworks.h"
#endif
QProgressDialog *progressDialog = NULL;