Sound:
[blender-staging.git] / intern / audaspace / CMakeLists.txt
index 587ef30979b5212923d01ecc58342c7dc5a73cbe..0965a467201172cbfe5930306c29a68d4ee494c8 100644 (file)
@@ -40,11 +40,6 @@ IF(WITH_OPENAL)
        SET(INC ${INC} OpenAL ${OPENAL_INCLUDE_DIR})
        FILE(GLOB OPENALSRC OpenAL/*.cpp)
        ADD_DEFINITIONS(-DWITH_OPENAL)
-
-       STRING(REGEX MATCH ".*ramework.*" FRAMEWORK ${OPENAL_INCLUDE_DIR})
-       IF(FRAMEWORK)
-               ADD_DEFINITIONS(-DAPPLE_FRAMEWORK_FIX)
-       ENDIF(FRAMEWORK)
 ENDIF(WITH_OPENAL)
 
 IF(WITH_JACK)
@@ -59,6 +54,12 @@ IF(WITH_SNDFILE)
        ADD_DEFINITIONS(-DWITH_SNDFILE)
 ENDIF(WITH_SNDFILE)
 
-SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC})
+IF(WITH_FFTW3)
+       SET(INC ${INC} fftw ${FFTW3_INC})
+       FILE(GLOB FFTW3SRC fftw/*.cpp)
+       ADD_DEFINITIONS(-DWITH_FFTW3)
+ENDIF(WITH_FFTW3)
+
+SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC})
 
 BLENDERLIB(bf_audaspace "${SRC}" "${INC}")