Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime...
[blender-staging.git] / source / creator / CMakeLists.txt
index 9f3106153ee28e4d72981490e6c37b4753e16c74..9a94b49c5c2a82c32cdb209b65fadfd44dde95c1 100644 (file)
@@ -42,9 +42,9 @@ INCLUDE_DIRECTORIES(
        ../blender/windowmanager
 )
 
-IF(WITH_QUICKTIME)
+IF(WITH_CODEC_QUICKTIME)
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_QUICKTIME)
+ENDIF(WITH_CODEC_QUICKTIME)
 
 IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
@@ -361,7 +361,7 @@ IF(WITH_INSTALL)
                        ENDIF(CMAKE_CL_64)
                ENDIF(WITH_INTERNATIONAL)
 
-               IF(WITH_FFMPEG)
+               IF(WITH_CODEC_FFMPEG)
                        ADD_CUSTOM_COMMAND(TARGET blender
                                POST_BUILD
                                MAIN_DEPENDENCY blender
@@ -371,15 +371,15 @@ IF(WITH_INSTALL)
                                COMMAND copy /Y \"${LIBDIR}\\ffmpeg\\lib\\avutil-50.dll\" \"${TARGETDIR}\\\"
                                COMMAND copy /Y \"${LIBDIR}\\ffmpeg\\lib\\swscale-0.dll\" \"${TARGETDIR}\\\"
                        )
-               ENDIF(WITH_FFMPEG)
+               ENDIF(WITH_CODEC_FFMPEG)
 
-               IF(WITH_SNDFILE)
+               IF(WITH_CODEC_SNDFILE)
                        ADD_CUSTOM_COMMAND(TARGET blender
                                POST_BUILD
                                MAIN_DEPENDENCY blender
                                COMMAND copy /Y \"${LIBDIR}\\sndfile\\lib\\libsndfile-1.dll\" \"${TARGETDIR}\\\"
                        )
-               ENDIF(WITH_SNDFILE)
+               ENDIF(WITH_CODEC_SNDFILE)
 
                IF(WITH_JACK)
                        ADD_CUSTOM_COMMAND(TARGET blender
@@ -562,6 +562,7 @@ ENDIF(WITH_MOD_FLUID)
                bf_intern_moto 
                extern_glew
                extern_openjpeg
+               extern_redcode
                ge_videotex
                bf_rna
                bf_dna
@@ -581,9 +582,9 @@ ENDIF(WITH_MOD_FLUID)
                LIST(APPEND BLENDER_SORTED_LIBS bf_intern_itasc)
        ENDIF(WITH_IK_ITASC)
 
-       IF(WITH_QUICKTIME)
+       IF(WITH_CODEC_QUICKTIME)
                LIST(APPEND BLENDER_SORTED_LIBS bf_quicktime)
-       ENDIF(WITH_QUICKTIME)
+       ENDIF(WITH_CODEC_QUICKTIME)
 
 
        FOREACH(SORTLIB ${BLENDER_SORTED_LIBS})