+# Use our own (well, KDE's) version of some modules
+# In particular cmake's FindQt4 and FindOpenSSL are quite buggy
+set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+
+# Various options and variables that can be set on the command line
+option(WANT_CORE "Build the core (server) binary" ON)
+option(WANT_QTCLIENT "Build the Qt4 GUI client binary" ON)
+option(WANT_MONO "Build the monolithic (all-in-one) binary" OFF)
+
+option(STATIC "Enable static building (might not be portable)" OFF)
+option(SPUTDEV "Do not use!" OFF)
+
+set(QT "" CACHE STRING "Path to a Qt installation to use instead of the system Qt")
+
+if(STATIC)