Commit a66f1b54 authored by Ludovic Fauvet's avatar Ludovic Fauvet

cmake: fix plugins runtime issues

parent 51bfae85
project(BlitInRectangleEffectPlugin)
PROJECT(BlitInRectangleEffectPlugin)
set(BLITINRECTANGLE_SRCS
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
SET(SOURCES_CPP
BlitInRectangleEffectPlugin.cpp
BlitInRectangleEffectPluginCreator.cpp
../../../PluginsAPI/LightVideoFrame.cpp
)
qt4_automoc(${BLITINRECTANGLE_SRCS})
SET(SOURCES_H
BlitInRectangleEffectPluginCreator.h
)
QT4_WRAP_CPP(SOURCES_H_MOC ${SOURCES_H})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_DEFINITIONS(-DQT_PLUGIN)
ADD_DEFINITIONS(-DQT_NO_DEBUG)
ADD_DEFINITIONS(-DQT_SHARED)
ADD_LIBRARY(BlitInRectangleEffectPlugin SHARED ${BLITINRECTANGLE_SRCS})
target_link_libraries(BlitInRectangleEffectPlugin ${QT_LIBRARIES})
ADD_LIBRARY(BlitInRectangleEffectPlugin SHARED ${SOURCES_CPP} ${SOURCES_H_MOC})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
TARGET_LINK_LIBRARIES(BlitInRectangleEffectPlugin ${QT_LIBRARIES})
project(GreenFilterEffectPlugin)
PROJECT(GreenFilterEffectPlugin)
set(GREENFILTEREFFECT_SRCS
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
SET(SOURCES_CPP
GreenFilterEffectPlugin.cpp
GreenFilterEffectPluginCreator.cpp
../../../PluginsAPI/LightVideoFrame.cpp
)
qt4_automoc(${GREENFILTEREFFECT_SRCS})
SET(SOURCES_H
GreenFilterEffectPluginCreator.h
)
QT4_WRAP_CPP(SOURCES_H_MOC ${SOURCES_H})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_DEFINITIONS(-DQT_PLUGIN)
ADD_DEFINITIONS(-DQT_NO_DEBUG)
ADD_DEFINITIONS(-DQT_SHARED)
ADD_LIBRARY(GreenFilterEffectPlugin SHARED ${GREENFILTEREFFECT_SRCS})
ADD_LIBRARY(GreenFilterEffectPlugin SHARED ${SOURCES_CPP} ${SOURCES_H_MOC})
target_link_libraries(GreenFilterEffectPlugin ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(GreenFilterEffectPlugin ${QT_LIBRARIES})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
project(InvertRNBEffectPlugin)
PROJECT(InvertRNBEffectPlugin)
set(INVERTRNBEFFECT_SRCS
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
SET(SOURCES_CPP
InvertRNBEffectPlugin.cpp
InvertRNBEffectPluginCreator.cpp
../../../PluginsAPI/LightVideoFrame.cpp
)
qt4_automoc($INVERTRNBEFFECT_SRCS})
SET(SOURCES_H
InvertRNBEffectPluginCreator.h
)
QT4_WRAP_CPP(SOURCES_H_MOC ${SOURCES_H})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_DEFINITIONS(-DQT_PLUGIN)
ADD_DEFINITIONS(-DQT_NO_DEBUG)
ADD_DEFINITIONS(-DQT_SHARED)
ADD_LIBRARY(InvertRNBEffectPlugin SHARED ${INVERTRNBEFFECT_SRCS})
ADD_LIBRARY(InvertRNBEffectPlugin SHARED ${SOURCES_CPP} ${SOURCES_H_MOC})
target_link_libraries(InvertRNBEffectPlugin ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(InvertRNBEffectPlugin ${QT_LIBRARIES})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
project(MixerEffectPlugin)
PROJECT(MixerEffectPlugin)
set(MIXEREFFECT_SRCS
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
SET(SOURCES_CPP
MixerEffectPlugin.cpp
MixerEffectPluginCreator.cpp
../../../PluginsAPI/LightVideoFrame.cpp
)
qt4_automoc(${MIXEREFFECT_SRCS})
SET(SOURCES_H
MixerEffectPluginCreator.h
)
QT4_WRAP_CPP(SOURCES_H_MOC ${SOURCES_H})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_DEFINITIONS(-DQT_PLUGIN)
ADD_DEFINITIONS(-DQT_NO_DEBUG)
ADD_DEFINITIONS(-DQT_SHARED)
ADD_LIBRARY(MixerEffectPlugin SHARED ${MIXEREFFECT_SRCS})
ADD_LIBRARY(MixerEffectPlugin SHARED ${SOURCES_CPP} ${SOURCES_H_MOC})
target_link_libraries(MixerEffectPlugin ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(MixerEffectPlugin ${QT_LIBRARIES})
INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIR}
../../../PluginsAPI
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment