Audio file loading backend libsndfile!
[blender.git] / intern / audaspace / CMakeLists.txt
index 940a4b2bedc33cb278deb8d8bafc90b47ad8dad2..1b48de3190b1c44978b78797378e047372e42544 100644 (file)
@@ -53,6 +53,12 @@ IF(WITH_JACK)
   ADD_DEFINITIONS(-DWITH_JACK)
 ENDIF(WITH_JACK)
 
   ADD_DEFINITIONS(-DWITH_JACK)
 ENDIF(WITH_JACK)
 
-SET(SRC ${SRC} ${FFMPEGSRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC})
+IF(WITH_SNDFILE)
+  SET(INC ${INC} sndfile ${SNDFILE_INC})
+  FILE(GLOB SNDFILESRC sndfile/*.cpp)
+  ADD_DEFINITIONS(-DWITH_SNDFILE)
+ENDIF(WITH_SNDFILE)
+
+SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC})
 
 BLENDERLIB(bf_audaspace "${SRC}" "${INC}")
 
 BLENDERLIB(bf_audaspace "${SRC}" "${INC}")