Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « audaspace « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d73f953e672f1bb7197434ecd44c63867ffac86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# $Id$
# ***** BEGIN LGPL LICENSE BLOCK *****
#
# Copyright 2009 Jörg Hermann Müller
#
# This file is part of AudaSpace.
#
# AudaSpace is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# AudaSpace is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with AudaSpace.  If not, see <http://www.gnu.org/licenses/>.
#
# ***** END LGPL LICENSE BLOCK *****

SET(INC
	.
	intern
	FX SRC
	${PTHREADS_INC}
	${LIBSAMPLERATE_INC}
)

FILE(GLOB SRC
	intern/*.cpp
	intern/*.h
	FX/*.cpp
	SRC/*.cpp
)

IF(WITH_FFMPEG)
	LIST(APPEND INC ffmpeg)
	LIST(APPEND INC ${FFMPEG_INC})
	FILE(GLOB FFMPEGSRC ffmpeg/*.cpp)
	ADD_DEFINITIONS(-DWITH_FFMPEG)
ENDIF(WITH_FFMPEG)

IF(WITH_SDL)
	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)
	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)
	LIST(APPEND INC jack)
	LIST(APPEND INC ${JACK_INC})
	FILE(GLOB JACKSRC jack/*.cpp)
	ADD_DEFINITIONS(-DWITH_JACK)
ENDIF(WITH_JACK)

IF(WITH_SNDFILE)
	LIST(APPEND INC sndfile)
	LIST(APPEND INC ${SNDFILE_INC})
	FILE(GLOB SNDFILESRC sndfile/*.cpp)
	ADD_DEFINITIONS(-DWITH_SNDFILE)
ENDIF(WITH_SNDFILE)

#IF(WITH_FFTW3)
#	SET(INC ${INC} fftw ${FFTW3_INC})
#	FILE(GLOB FFTW3SRC fftw/*.cpp)
#	ADD_DEFINITIONS(-DWITH_FFTW3)
#ENDIF(WITH_FFTW3)

IF(WITH_PYTHON)
	LIST(APPEND INC Python)
	LIST(APPEND INC ${PYTHON_INC})
	FILE(GLOB PYTHONSRC Python/*.cpp)
ELSE(WITH_PYTHON)
	ADD_DEFINITIONS(-DDISABLE_PYTHON)
ENDIF(WITH_PYTHON)

SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC} ${PYTHONSRC})

BLENDERLIB(bf_intern_audaspace "${SRC}" "${INC}")