# CMakeLists.txt for <YUVtoRGBFilter> 

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

INCLUDE_DIRECTORIES(
${vppIncludes}
)

# Lib directories
LINK_DIRECTORIES(
${vppLink}
)

SET(FLT_HDRS
resource.h
stdafx.h
YUVtoRGBFilter.h
YUY2RGBProperties.h
)

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

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

TARGET_LINK_LIBRARIES (
YUVtoRGBFilter
${vppLibs}
vpp
) 

INSTALL(
  TARGETS YUVtoRGBFilter
  ARCHIVE DESTINATION bin
  LIBRARY DESTINATION bin
)

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