# CMakeLists.txt for <RGBtoYUVFilter> 

# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_BUILD_FOR_SHORT")

INCLUDE_DIRECTORIES(
${vppIncludes}
)

# Lib directories
LINK_DIRECTORIES(
${vppLink}
)

SET(FLT_HDRS
resource.h
RGB2YUVProperties.h
RGBtoYUVFilter.h
stdafx.h
)

SET(FLT_SRCS 
DLLSetup.cpp
RGBtoYUVFilter.cpp
RGBtoYUVFilter.def
RGBtoYUVFilter.rc
stdafx.cpp
)

ADD_LIBRARY(
RGBtoYUVFilter SHARED ${FLT_SRCS} ${FLT_HDRS})

TARGET_LINK_LIBRARIES (
RGBtoYUVFilter
${vppLibs}
vpp
) 

INSTALL(
  TARGETS RGBtoYUVFilter
  ARCHIVE DESTINATION bin
  LIBRARY DESTINATION bin
)

IF (REGISTER_DS_FILTERS)
ADD_CUSTOM_COMMAND(
TARGET RGBtoYUVFilter 
POST_BUILD COMMAND 
regsvr32 /s \"$(TargetPath)\"
)
ENDIF(REGISTER_DS_FILTERS)
