add_subdirectory( bigbrother )
add_subdirectory( bracketing2hdr )
add_subdirectory( colorrange )
add_subdirectory( colorspaceconversion )
add_subdirectory( compose )
add_subdirectory( dropshadow )
add_subdirectory( histogram )
add_subdirectory( imagesize )
add_subdirectory( metadataeditor )
add_subdirectory( modify_selection )
add_subdirectory( rotateimage )
add_subdirectory( scripting ) # TODO: port it to the change of KisFilter
add_subdirectory( separate_channels )
add_subdirectory( shearimage )
add_subdirectory( smallcolorselector )
add_subdirectory( specificcolorselector )
add_subdirectory( together )
add_subdirectory( tonemapping )
add_subdirectory( trianglecolorselector )
add_subdirectory( histogram_docker )
MESSAGE("Krita: port the histogram docker")

macro_optional_find_package(GMM)

macro_log_feature(GMM_FOUND "GMM" "The Krita Panorama plugin will not be built." "http://home.gna.org/getfem/download.html" FALSE "")
macro_log_feature(HAVE_OPENGL "OpenGL" "The Krita shader filter plugin will not be built" "" FALSE "")
macro_log_feature(HAVE_GLEW "GLEW" "The Krita shader filter plugin will not be built" "http://glew.sourceforge.net" FALSE "")

if(GMM_FOUND AND NOT MSVC)
    add_subdirectory( panorama )
endif(GMM_FOUND AND NOT MSVC)

if(HAVE_OPENGL AND HAVE_GLEW)
   add_subdirectory( glsl )
endif(HAVE_OPENGL AND HAVE_GLEW)
