-# Select if Quassel should be built in client, server or monolithic mode
-SET(BUILD "mono" CACHE STRING "Defines which Quassel parts are to be built. Can contain 'core', 'gui' and/or 'monolithic' (which is the default), or 'all' to build everything.")
-SET(BUILD_CORE )
-SET(BUILD_GUI )
-SET(BUILD_MONO )
-IF(BUILD MATCHES "core" OR BUILD MATCHES "all")
- SET(BUILD_CORE true)
- MESSAGE("Building Quassel core.")
-ENDIF(BUILD MATCHES "core" OR BUILD MATCHES "all")
-IF(BUILD MATCHES "gui" OR BUILD MATCHES "all")
- SET(BUILD_GUI true)
- MESSAGE("Building Quassel GUI.")
-ENDIF(BUILD MATCHES "gui" OR BUILD MATCHES "all")
-IF(BUILD MATCHES "mono" OR BUILD MATCHES "all")
- SET(BUILD_MONO true)
- MESSAGE("Building monolithic Quassel.")
-ENDIF(BUILD MATCHES "mono" OR BUILD MATCHES "all")
-IF(NOT BUILD_MONO AND NOT BUILD_CORE AND NOT BUILD_GUI)
- MESSAGE(FATAL_ERROR "\nYou have not selected which parts of Quassel I should build. Aborting.\nRun 'cmake <path> -DBUILD=<part>', where <part> contains one or more of 'core', 'gui' or 'monolithic', or 'all' to build everything.\n")
-ENDIF(NOT BUILD_MONO AND NOT BUILD_CORE AND NOT BUILD_GUI)