Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime...
[blender-staging.git] / source / blender / imbuf / CMakeLists.txt
index 141833f70e183024f811ac0b433c899e0492b979..e68b2d20fa3bf65ac45733b4dbe105ded2db2e18 100644 (file)
@@ -101,24 +101,32 @@ IF(WITH_IMAGE_OPENEXR)
 ENDIF(WITH_IMAGE_OPENEXR)
 
 IF(WITH_IMAGE_TIFF)
-       SET(INC ${INC} ${TIFF_INCLUDE_DIR})
+       LIST(APPEND INC ${TIFF_INCLUDE_DIR})
        ADD_DEFINITIONS(-DWITH_TIFF)
 ENDIF(WITH_IMAGE_TIFF)
 
 IF(WITH_IMAGE_OPENJPEG)
-       SET(INC ${INC} ${OPENJPEG_INC})
+       LIST(APPEND INC ${OPENJPEG_INC})
        ADD_DEFINITIONS(-DWITH_OPENJPEG)
 ENDIF(WITH_IMAGE_OPENJPEG)
 
-IF(WITH_QUICKTIME)
-       SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
+IF(WITH_IMAGE_REDCODE)
+       LIST(APPEND INC ${REDCODE_INC})
+       ADD_DEFINITIONS(-DWITH_REDCODE)
+ENDIF(WITH_IMAGE_REDCODE)
+
+IF(WITH_CODEC_QUICKTIME)
+       LIST(APPEND INC
+               ../quicktime
+               ${QUICKTIME_INC}
+       )
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_QUICKTIME)
+ENDIF(WITH_CODEC_QUICKTIME)
 
-IF(WITH_FFMPEG)
-       SET(INC ${INC} ${FFMPEG_INC})
+IF(WITH_CODEC_FFMPEG)
+       LIST(APPEND INC ${FFMPEG_INC})
        ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_FFMPEG)
+ENDIF(WITH_CODEC_FFMPEG)
 
 IF(WITH_IMAGE_DDS)
        ADD_DEFINITIONS(-DWITH_DDS)