aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-11-17 19:16:51 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-16 08:00:04 -0800
commit2637b5c3f1def64d2db978f5cc01e6835179ebec (patch)
tree3c5f6452dd25fea2fb65b33c372d994e94b1e837 /CMakeLists.txt
parentf26df4f80afc199c9a063f280bc60b0cf2006944 (diff)
downloadsubsurface-2637b5c3f1def64d2db978f5cc01e6835179ebec.tar.gz
Rework Options order, add SUBSURFACE_TARGET_PLATFORM flag.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 16 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0be935399..80b0819d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,22 +11,34 @@ MACRO_ENSURE_OUT_OF_SOURCE_BUILD(
"We don't support building in source, please create a build folder elsewhere and remember to run git clean -xdf to remoev temporary files created by CMake."
)
+#Options regarding usage of pkgconfig
option(LIBGIT2_FROM_PKGCONFIG "use pkg-config to retrieve libgit2" OFF)
option(LIBDC_FROM_PKGCONFIG "use pkg-config to retrieve libdivecomputer" OFF)
option(LIBGRANTLEE_FROM_PKGCONFIG "use pkg-config to retrieve grantlee" OFF)
option(LIBMARBLE_FROM_PKGCONFIG "use pkg-config to retrieve marble" OFF)
-option(MAKE_TESTS "Make the tests" ON)
+#Library Handling
+option(USE_LIBGIT23_API "allow building with libgit2 master" OFF)
+option(FORCE_LIBSSH "force linking with libssh to workaround libgit2 bug" ON)
+
+#Options regarding disabling parts of subsurface.
option(NO_MARBLE "disable the marble widget" OFF)
option(NO_DOCS "disable the docs" OFF)
option(NO_PRINTING "disable the printing support" OFF)
option(NO_USERMANUAL "don't include a viewer for the user manual" OFF)
-option(FORCE_LIBSSH "force linking with libssh to workaround libgit2 bug" ON)
-option(SUBSURFACE_MOBILE "build the QtQuick version for mobile device" OFF)
+
+#Options regarding enabling parts of subsurface
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)
+
+# Options regarding What should we build on subsurface
+option(MAKE_TESTS "Make the tests" ON)
+
+SET(SUBSURFACE_TARGET_PLATFORM "Desktop" CACHE STRING "The target that Subsurface will be build")
+SET_PROPERTY(CACHE SUBSURFACE_TARGET_PLATFORM PROPERTY STRINGS "Desktop" "Android" "iOS" "AndroidEmulator" "iOSEmulator")
+
+#Extra features
option(SMARTTRAK_IMPORT "enable building SmartTrak divelogs import tool (requires glib2 and libmdb)" OFF)
if (NOT FBSUPPORT)