find_package (Compiz REQUIRED)

include (CompizPlugin)

add_subdirectory (src/fsregion)
add_subdirectory (src/blacklist)

find_package (OpenGL)
if (OPENGL_FOUND)
    compiz_plugin(opengl PLUGINDEPS composite LIBRARIES ${OPENGL_gl_LIBRARY} compiz_opengl_fsregion compiz_opengl_blacklist INCDIRS ${OPENGL_INCLUDE_DIR})
endif ()
