Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime...
[blender-staging.git] / build_files / cmake / macros.cmake
index c35c73cbb4684f480d070bbe3ad04b0df84948fe..8fbef8a07841cf0f25b7468482c358a3d112ad23 100644 (file)
@@ -63,9 +63,9 @@ MACRO(SETUP_LIBDIRS)
        IF(WITH_SDL)
                LINK_DIRECTORIES(${SDL_LIBPATH})
        ENDIF(WITH_SDL)
-       IF(WITH_FFMPEG)
+       IF(WITH_CODEC_FFMPEG)
                LINK_DIRECTORIES(${FFMPEG_LIBPATH})
-       ENDIF(WITH_FFMPEG)
+       ENDIF(WITH_CODEC_FFMPEG)
        IF(WITH_IMAGE_OPENEXR)
                LINK_DIRECTORIES(${OPENEXR_LIBPATH})
        ENDIF(WITH_IMAGE_OPENEXR)
@@ -75,18 +75,18 @@ MACRO(SETUP_LIBDIRS)
        IF(WITH_LCMS)
                LINK_DIRECTORIES(${LCMS_LIBPATH})
        ENDIF(WITH_LCMS)
-       IF(WITH_QUICKTIME)
+       IF(WITH_CODEC_QUICKTIME)
                LINK_DIRECTORIES(${QUICKTIME_LIBPATH})
-       ENDIF(WITH_QUICKTIME)
+       ENDIF(WITH_CODEC_QUICKTIME)
        IF(WITH_OPENAL)
                LINK_DIRECTORIES(${OPENAL_LIBPATH})
        ENDIF(WITH_OPENAL)
        IF(WITH_JACK)
                LINK_DIRECTORIES(${JACK_LIBPATH})
        ENDIF(WITH_JACK)
-       IF(WITH_SNDFILE)
+       IF(WITH_CODEC_SNDFILE)
                LINK_DIRECTORIES(${SNDFILE_LIBPATH})
-       ENDIF(WITH_SNDFILE)
+       ENDIF(WITH_CODEC_SNDFILE)
        IF(WITH_SAMPLERATE)
                LINK_DIRECTORIES(${LIBSAMPLERATE_LIBPATH})
        ENDIF(WITH_SAMPLERATE)
@@ -142,18 +142,18 @@ MACRO(SETUP_LIBLINKS
        IF(WITH_JACK)
                TARGET_LINK_LIBRARIES(${target} ${JACK_LIB})
        ENDIF(WITH_JACK)
-       IF(WITH_SNDFILE)
+       IF(WITH_CODEC_SNDFILE)
                TARGET_LINK_LIBRARIES(${target} ${SNDFILE_LIB})
-       ENDIF(WITH_SNDFILE)
+       ENDIF(WITH_CODEC_SNDFILE)
        IF(WITH_SAMPLERATE)
                TARGET_LINK_LIBRARIES(${target} ${LIBSAMPLERATE_LIB})
        ENDIF(WITH_SAMPLERATE)  
        IF(WITH_SDL)
                TARGET_LINK_LIBRARIES(${target} ${SDL_LIBRARY})
        ENDIF(WITH_SDL)
-       IF(WITH_QUICKTIME)
+       IF(WITH_CODEC_QUICKTIME)
                TARGET_LINK_LIBRARIES(${target} ${QUICKTIME_LIB})
-       ENDIF(WITH_QUICKTIME)
+       ENDIF(WITH_CODEC_QUICKTIME)
        IF(WITH_IMAGE_TIFF)
                TARGET_LINK_LIBRARIES(${target} ${TIFF_LIBRARY})
        ENDIF(WITH_IMAGE_TIFF)
@@ -170,9 +170,9 @@ MACRO(SETUP_LIBLINKS
        IF(WITH_LCMS)
                TARGET_LINK_LIBRARIES(${target} ${LCMS_LIBRARY})
        ENDIF(WITH_LCMS)
-       IF(WITH_FFMPEG)
+       IF(WITH_CODEC_FFMPEG)
                TARGET_LINK_LIBRARIES(${target} ${FFMPEG_LIB})
-       ENDIF(WITH_FFMPEG)
+       ENDIF(WITH_CODEC_FFMPEG)
        IF(WITH_OPENCOLLADA)
                IF(WIN32 AND NOT UNIX)
                        FOREACH(loop_var ${OPENCOLLADA_LIB})