3 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
5 # search packages used by KDE
6 find_package(KDE4 REQUIRED)
7 find_package(Strigi REQUIRED)
10 include(MacroOptionalAddSubdirectory)
15 #require by libs/libkdcraw
16 find_package(LCMS REQUIRED)
18 #require by libs/libkdcraw, gwenview, and okular
19 find_package(JPEG REQUIRED)
21 macro_optional_find_package(Blitz)
22 macro_log_feature(BLITZ_FOUND "Blitz" "A a graphical effect and filter library for KDE4" "http://sourceforge.net/projects/qimageblitz" FALSE "kdesupport" "Required to build kolourpaint.")
24 macro_optional_find_package(Gphoto2)
25 macro_log_feature(GPHOTO2_FOUND "gphoto2" "A library and framework that lets you download images from several different digital camera models" "http://heanet.dl.sourceforge.net/sourceforge/gphoto" FALSE "" "Required to build the kamera project.")
27 macro_optional_find_package(Sane)
28 macro_log_feature(SANE_FOUND "SANE" "SANE libraries which are needed by applications that want to access scanners." "http://www.sane-project.org" FALSE "" "Provides scanning support for libksane and ksaneplugin.")
30 #X11_xf86vmode discovery is done by FindX11
31 macro_log_feature(X11_xf86vmode_FOUND "X11 Video Mode Extension" "An X11 extension providing access to detailed timings of video modes currently in use, and a means to modify them" "http://www.x.org" FALSE "" "X11 xvidmode extensions are needed to build kgamma.")
33 set(EXIV2_MIN_VERSION "0.13") # AccessMode was added in 0.13
34 macro_optional_find_package(Exiv2)
35 macro_log_feature(EXIV2_FOUND "Exiv2" "A library to access image metadata" "http://www.exiv2.org" FALSE "" "Required to build libkexiv2 and gwenview.")
37 macro_optional_find_package(JPEG)
38 macro_log_feature(JPEG_FOUND "JPEG" "A library for reading and writing JPEG image files." "http://www.ijg.org" FALSE "" "Required to build gwenview and also provides support fof PalmDB documents in okular.")
40 macro_optional_find_package(Kipi)
41 macro_log_feature(KIPI_FOUND "KIPI" "A library for adding kipi support" "http://www.kipi-plugins.org" FALSE "" "Required to build gwenview with kipi support.")
43 add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS})
44 include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
47 add_subdirectory(cmake)
48 add_subdirectory(libs)
49 macro_optional_add_subdirectory(doc)
50 macro_optional_add_subdirectory(strigi-analyzer)
51 macro_optional_add_subdirectory(kcolorchooser)
52 macro_optional_add_subdirectory(kruler)
53 macro_optional_add_subdirectory(svgpart)
55 macro_optional_add_subdirectory(kolourpaint)
56 macro_optional_add_subdirectory(okular)
60 macro_optional_add_subdirectory(ksnapshot)
61 if (X11_xf86vmode_FOUND)
62 macro_optional_add_subdirectory(kgamma)
63 endif (X11_xf86vmode_FOUND)
66 if(KDE4_GPHOTO2 AND GPHOTO2_FOUND)
67 macro_optional_add_subdirectory(kamera)
68 endif(KDE4_GPHOTO2 AND GPHOTO2_FOUND)
71 macro_optional_add_subdirectory(ksaneplugin)
75 macro_optional_add_subdirectory(gwenview)
78 macro_display_feature_log()