project(kdeplasma-addons) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) find_package(KDE4 REQUIRED) include (KDE4Defaults) include(MacroLibrary) include(MacroOptionalDependPackage) find_package(KDE4Workspace REQUIRED) macro_optional_find_package(KdepimLibs) macro_log_feature(KDEPIMLIBS_FOUND "kdepimlibs" "KDE PIM libraries" "http://www.kde.org" FALSE "" "Needed for building several Plasma plugins") find_package(Boost) set(LIBATTICA_MIN_VERSION "0.1.1") macro_optional_find_package(LibAttica) macro_log_feature(LIBATTICA_FOUND "libattica" "Attica Library" "http://websvn.kde.org/trunk/kdesupport/attica/" FALSE "" "Needed for building the Open Collaboration Services plasma dataengine and applets") macro_optional_find_package(OpenGL) macro_log_feature(OPENGL_FOUND "OpenGL" "API for developing portable, interactive 2D and 3D graphics applications" "http://mesa3d.sourceforge.net" FALSE "" "STRONGLY RECOMMENDED: The 3D hardware acceleration available through the OpenGL API is used in applications ranging from graphics and modellers to screensavers and video players.") macro_optional_find_package(Nepomuk) macro_log_feature(NEPOMUK_FOUND "Nepomuk" "Handles all kinds of metadata on the KDE desktop to provide a semantic desktop" "http://nepomuk.kde.org/" FALSE "" "STRONGLY_RECOMMENDED: Nepomuk is used to provide metadata on objects like files, emails etc. to provide a semantic desktop.") macro_bool_to_01(NEPOMUK_FOUND HAVE_NEPOMUK) macro_optional_depend_package(Marble "Marble") if (DEPEND_PACKAGE_Marble) macro_optional_find_package(Marble) else (DEPEND_PACKAGE_Marble) set (MARBLE_FOUND FALSE) endif (DEPEND_PACKAGE_Marble) macro_log_feature(MARBLE_FOUND "Marble" "Desktop Globe" "http://marble.kde.org" FALSE "" "RECOMMENDED: Marble is used to provide a desktop globe wallpaper for Plasma.") if (NEPOMUK_FOUND) include_directories( ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_INCLUDE_DIR} ) endif (NEPOMUK_FOUND) add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) include_directories (${KDE4_INCLUDES} ${KDE4WORKSPACE_INCLUDE_DIR} ${KDEPIMLIBS_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/libs) add_subdirectory(libs) add_subdirectory(applets) add_subdirectory(dataengines) add_subdirectory(runners) add_subdirectory(scriptengines) add_subdirectory(wallpapers) macro_display_feature_log()