- use list append in more places (preferred method since its faster)
[blender.git] / intern / audaspace / CMakeLists.txt
index b1ded10e53963e7c4d6e75138851c3f53f0924d8..5d73f953e672f1bb7197434ecd44c63867ffac86 100644 (file)
 #
 # ***** END LGPL LICENSE BLOCK *****
 
 #
 # ***** END LGPL LICENSE BLOCK *****
 
-SET(INC . intern FX SRC ${PTHREADS_INC} ${LIBSAMPLERATE_INC})
+SET(INC
+       .
+       intern
+       FX SRC
+       ${PTHREADS_INC}
+       ${LIBSAMPLERATE_INC}
+)
 
 
-FILE(GLOB SRC intern/*.cpp intern/*.h FX/*.cpp SRC/*.cpp)
+FILE(GLOB SRC
+       intern/*.cpp
+       intern/*.h
+       FX/*.cpp
+       SRC/*.cpp
+)
 
 IF(WITH_FFMPEG)
 
 IF(WITH_FFMPEG)
-       SET(INC ${INC} ffmpeg ${FFMPEG_INC})
+       LIST(APPEND INC ffmpeg)
+       LIST(APPEND INC ${FFMPEG_INC})
        FILE(GLOB FFMPEGSRC ffmpeg/*.cpp)
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_SDL)
        FILE(GLOB FFMPEGSRC ffmpeg/*.cpp)
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_SDL)
-       SET(INC ${INC} SDL ${SDL_INCLUDE_DIR})
+       LIST(APPEND INC SDL)
+       LIST(APPEND INC ${SDL_INCLUDE_DIR})
        FILE(GLOB SDLSRC SDL/*.cpp)
        ADD_DEFINITIONS(-DWITH_SDL)
 ENDIF(WITH_SDL)
 
 IF(WITH_OPENAL)
        FILE(GLOB SDLSRC SDL/*.cpp)
        ADD_DEFINITIONS(-DWITH_SDL)
 ENDIF(WITH_SDL)
 
 IF(WITH_OPENAL)
-       SET(INC ${INC} OpenAL ${OPENAL_INCLUDE_DIR})
+       LIST(APPEND INC OpenAL)
+       LIST(APPEND INC ${OPENAL_INCLUDE_DIR})
        FILE(GLOB OPENALSRC OpenAL/*.cpp)
        ADD_DEFINITIONS(-DWITH_OPENAL)
 ENDIF(WITH_OPENAL)
 
 IF(WITH_JACK)
        FILE(GLOB OPENALSRC OpenAL/*.cpp)
        ADD_DEFINITIONS(-DWITH_OPENAL)
 ENDIF(WITH_OPENAL)
 
 IF(WITH_JACK)
-       SET(INC ${INC} jack ${JACK_INC})
+       LIST(APPEND INC jack)
+       LIST(APPEND INC ${JACK_INC})
        FILE(GLOB JACKSRC jack/*.cpp)
        ADD_DEFINITIONS(-DWITH_JACK)
 ENDIF(WITH_JACK)
 
 IF(WITH_SNDFILE)
        FILE(GLOB JACKSRC jack/*.cpp)
        ADD_DEFINITIONS(-DWITH_JACK)
 ENDIF(WITH_JACK)
 
 IF(WITH_SNDFILE)
-       SET(INC ${INC} sndfile ${SNDFILE_INC})
+       LIST(APPEND INC sndfile)
+       LIST(APPEND INC ${SNDFILE_INC})
        FILE(GLOB SNDFILESRC sndfile/*.cpp)
        ADD_DEFINITIONS(-DWITH_SNDFILE)
 ENDIF(WITH_SNDFILE)
        FILE(GLOB SNDFILESRC sndfile/*.cpp)
        ADD_DEFINITIONS(-DWITH_SNDFILE)
 ENDIF(WITH_SNDFILE)
@@ -61,7 +77,8 @@ ENDIF(WITH_SNDFILE)
 #ENDIF(WITH_FFTW3)
 
 IF(WITH_PYTHON)
 #ENDIF(WITH_FFTW3)
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} Python ${PYTHON_INC})
+       LIST(APPEND INC Python)
+       LIST(APPEND INC ${PYTHON_INC})
        FILE(GLOB PYTHONSRC Python/*.cpp)
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
        FILE(GLOB PYTHONSRC Python/*.cpp)
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)