- use list append in more places (preferred method since its faster)
[blender.git] / intern / audaspace / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN LGPL LICENSE BLOCK *****
3 #
4 # Copyright 2009 Jörg Hermann Müller
5 #
6 # This file is part of AudaSpace.
7 #
8 # AudaSpace is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # AudaSpace is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with AudaSpace.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 # ***** END LGPL LICENSE BLOCK *****
22
23 SET(INC
24         .
25         intern
26         FX SRC
27         ${PTHREADS_INC}
28         ${LIBSAMPLERATE_INC}
29 )
30
31 FILE(GLOB SRC
32         intern/*.cpp
33         intern/*.h
34         FX/*.cpp
35         SRC/*.cpp
36 )
37
38 IF(WITH_FFMPEG)
39         LIST(APPEND INC ffmpeg)
40         LIST(APPEND INC ${FFMPEG_INC})
41         FILE(GLOB FFMPEGSRC ffmpeg/*.cpp)
42         ADD_DEFINITIONS(-DWITH_FFMPEG)
43 ENDIF(WITH_FFMPEG)
44
45 IF(WITH_SDL)
46         LIST(APPEND INC SDL)
47         LIST(APPEND INC ${SDL_INCLUDE_DIR})
48         FILE(GLOB SDLSRC SDL/*.cpp)
49         ADD_DEFINITIONS(-DWITH_SDL)
50 ENDIF(WITH_SDL)
51
52 IF(WITH_OPENAL)
53         LIST(APPEND INC OpenAL)
54         LIST(APPEND INC ${OPENAL_INCLUDE_DIR})
55         FILE(GLOB OPENALSRC OpenAL/*.cpp)
56         ADD_DEFINITIONS(-DWITH_OPENAL)
57 ENDIF(WITH_OPENAL)
58
59 IF(WITH_JACK)
60         LIST(APPEND INC jack)
61         LIST(APPEND INC ${JACK_INC})
62         FILE(GLOB JACKSRC jack/*.cpp)
63         ADD_DEFINITIONS(-DWITH_JACK)
64 ENDIF(WITH_JACK)
65
66 IF(WITH_SNDFILE)
67         LIST(APPEND INC sndfile)
68         LIST(APPEND INC ${SNDFILE_INC})
69         FILE(GLOB SNDFILESRC sndfile/*.cpp)
70         ADD_DEFINITIONS(-DWITH_SNDFILE)
71 ENDIF(WITH_SNDFILE)
72
73 #IF(WITH_FFTW3)
74 #       SET(INC ${INC} fftw ${FFTW3_INC})
75 #       FILE(GLOB FFTW3SRC fftw/*.cpp)
76 #       ADD_DEFINITIONS(-DWITH_FFTW3)
77 #ENDIF(WITH_FFTW3)
78
79 IF(WITH_PYTHON)
80         LIST(APPEND INC Python)
81         LIST(APPEND INC ${PYTHON_INC})
82         FILE(GLOB PYTHONSRC Python/*.cpp)
83 ELSE(WITH_PYTHON)
84         ADD_DEFINITIONS(-DDISABLE_PYTHON)
85 ENDIF(WITH_PYTHON)
86
87 SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC} ${PYTHONSRC})
88
89 BLENDERLIB(bf_intern_audaspace "${SRC}" "${INC}")