INCLUDE_DIRECTORIES(
    ${GSTREAMER_INCLUDE_DIRS}
    ${GLIB_INCLUDE_DIRS}
)

SET(TARGET_EXTERNAL_LIBRARIES
    ${GSTREAMER_LIBRARIES}
    ${GSTREAMER_APP_LIBRARIES}
    ${GSTREAMER_PBUTILS_LIBRARIES}
    ${GLIB_LIBRARIES}
    ${GLIB_GOBJECT_LIBRARIES}
)

SET(TARGET_SRC
    GStreamerImageStream.cpp
    ReaderWriterGStreamer.cpp
)

SET(TARGET_H
    GStreamerImageStream.hpp
)


IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")

  REMOVE_CXX_FLAG(-pedantic)

  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-variadic-macros")

ENDIF()

#### end var setup  ###
SETUP_PLUGIN(gstreamer)
