Make building plugins optional

This currently fails at least on my old Mac that I use to create binaries
that work on 10.7 and newer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-08 16:28:56 -08:00
parent 125217074e
commit 871f585f42
2 changed files with 4 additions and 1 deletions

View file

@ -23,6 +23,7 @@ option(SUBSURFACE_MOBILE "build the QtQuick version for mobile device" OFF)
option(FBSUPPORT "allow posting to Facebook" ON)
option(BTSUPPORT "enable support for QtBluetooth (requires Qt5.4 or newer)" ON)
option(FTDISUPPORT "enable support for libftdi based serial" OFF)
option(DISABLE_PLUGINS "disable support for social media plugins" OFF)
add_definitions(-DSUBSURFACE_SOURCE="${CMAKE_SOURCE_DIR}")

View file

@ -13,7 +13,9 @@ include_directories(.
)
add_subdirectory(preferences)
add_subdirectory(plugins)
if(NOT DISABLE_PLUGINS)
add_subdirectory(plugins)
endif()
# the interface, in C++
set(SUBSURFACE_INTERFACE