+SET( CMAKE_MODULE_PATH ${LIBZYPP_SOURCE_DIR}/cmake/modules )
+INCLUDE(ZyppCommon)
+
+OPTION (ENABLE_BUILD_DOCS "Build documentation by default?" OFF)
+OPTION (ENABLE_BUILD_TRANS "Build translation files by default?" OFF)
+OPTION (ENABLE_BUILD_TESTS "Build and run test suite by default?" OFF)
+OPTION (ENABLE_USE_THREADS "Enable using threads (NOT being used by threads!)?" OFF)
+OPTION (ENABLE_ZCHUNK_COMPRESSION "Build with zchunk compression support?" OFF)
+OPTION (DISABLE_MEDIABACKEND_TESTS "Disable Tests depending on Nginx and libfcgi?" OFF)
+
+OPTION (DISABLE_LIBPROXY "Build without libproxy support even if package is installed?" OFF)
+OPTION (DISABLE_AUTODOCS "Do not require doxygen being installed (required to build autodocs)?" OFF)
+OPTION (EXPORT_NG_API "Export experimental libzypp API" OFF)
+#--------------------------------------------------------------------------------
+SET (have_system x)
+
+IF (DEBIAN)
+ MESSAGE (STATUS "Building for Debian")
+ SET (ENABLE_BUILD_DOCS ON)
+ SET (ENABLE_BUILD_TRANS ON)
+ SET (ENABLE_BUILD_TESTS ON)
+ SET (have_system ${have_system}x)
+ENDIF (DEBIAN)
+
+IF (${have_system} STREQUAL x)
+ MESSAGE (STATUS "Building for SUSE")
+ENDIF (${have_system} STREQUAL x)
+
+IF (${have_system} STRGREATER xx)
+ MESSAGE (FATAL_ERROR "Can only build for one system type.")
+ENDIF (${have_system} STRGREATER xx)
+#--------------------------------------------------------------------------------