Added jack audio support, building with cmake only currently, feel free to add scons...
[blender-staging.git] / intern / audaspace / CMakeLists.txt
index c0716e2057c640f9219a1c7e751b692c2b19f581..940a4b2bedc33cb278deb8d8bafc90b47ad8dad2 100644 (file)
@@ -31,22 +31,28 @@ IF(WITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_SDL)
-  SET(INC ${INC} SDL ${SDL_INC})
+  SET(INC ${INC} SDL ${SDL_INCLUDE_DIR})
   FILE(GLOB SDLSRC SDL/*.cpp)
   ADD_DEFINITIONS(-DWITH_SDL)
 ENDIF(WITH_SDL)
 
 IF(WITH_OPENAL)
-  SET(INC ${INC} OpenAL ${OPENAL_INC})
+  SET(INC ${INC} OpenAL ${OPENAL_INCLUDE_DIR})
   FILE(GLOB OPENALSRC OpenAL/*.cpp)
   ADD_DEFINITIONS(-DWITH_OPENAL)
 
-  STRING(REGEX MATCH ".*ramework.*" FRAMEWORK ${OPENAL_INC})
+  STRING(REGEX MATCH ".*ramework.*" FRAMEWORK ${OPENAL_INCLUDE_DIR})
   IF(FRAMEWORK)
     ADD_DEFINITIONS(-DAPPLE_FRAMEWORK_FIX)
   ENDIF(FRAMEWORK)
 ENDIF(WITH_OPENAL)
 
-SET(SRC ${SRC} ${FFMPEGSRC} ${SDLSRC} ${OPENALSRC})
+IF(WITH_JACK)
+  SET(INC ${INC} jack ${JACK_INC})
+  FILE(GLOB JACKSRC jack/*.cpp)
+  ADD_DEFINITIONS(-DWITH_JACK)
+ENDIF(WITH_JACK)
+
+SET(SRC ${SRC} ${FFMPEGSRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC})
 
 BLENDERLIB(bf_audaspace "${SRC}" "${INC}")