cmake source definitions:
[blender.git] / intern / smoke / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Daniel Genrich
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 set(INC
28         intern
29         ../memutil
30         ../../extern/bullet2/src
31 )
32
33 set(INC_SYS
34         ${PNG_INCLUDE_DIR}
35         ${ZLIB_INCLUDE_DIRS}
36 )
37
38 set(SRC
39         intern/EIGENVALUE_HELPER.cpp
40         intern/FLUID_3D.cpp
41         intern/FLUID_3D_SOLVERS.cpp
42         intern/FLUID_3D_STATIC.cpp
43         intern/LU_HELPER.cpp
44         intern/SPHERE.cpp
45         intern/WTURBULENCE.cpp
46         intern/smoke_API.cpp
47
48         extern/smoke_API.h
49         intern/EIGENVALUE_HELPER.h
50         intern/FFT_NOISE.h
51         intern/FLUID_3D.h
52         intern/IMAGE.h
53         intern/INTERPOLATE.h
54         intern/LU_HELPER.h
55         intern/MERSENNETWISTER.h
56         intern/OBSTACLE.h
57         intern/SPHERE.h
58         intern/VEC3.h
59         intern/WAVELET_NOISE.h
60         intern/WTURBULENCE.h
61         intern/tnt/jama_eig.h
62         intern/tnt/jama_lu.h
63         intern/tnt/tnt.h
64         intern/tnt/tnt_array1d.h
65         intern/tnt/tnt_array1d_utils.h
66         intern/tnt/tnt_array2d.h
67         intern/tnt/tnt_array2d_utils.h
68         intern/tnt/tnt_array3d.h
69         intern/tnt/tnt_array3d_utils.h
70         intern/tnt/tnt_cmat.h
71         intern/tnt/tnt_fortran_array1d.h
72         intern/tnt/tnt_fortran_array1d_utils.h
73         intern/tnt/tnt_fortran_array2d.h
74         intern/tnt/tnt_fortran_array2d_utils.h
75         intern/tnt/tnt_fortran_array3d.h
76         intern/tnt/tnt_fortran_array3d_utils.h
77         intern/tnt/tnt_i_refvec.h
78         intern/tnt/tnt_math_utils.h
79         intern/tnt/tnt_sparse_matrix_csr.h
80         intern/tnt/tnt_stopwatch.h
81         intern/tnt/tnt_subscript.h
82         intern/tnt/tnt_vec.h
83         intern/tnt/tnt_version.h
84 )
85
86 if(WITH_OPENMP)
87         add_definitions(-DPARALLEL=1)
88 endif()
89
90 if(WITH_FFTW3)
91         add_definitions(-DFFTW3=1)
92         list(APPEND INC
93                 ${FFTW3_INCLUDE_DIRS}
94         )
95 endif()
96
97 blender_add_lib(bf_intern_smoke "${SRC}" "${INC}" "${INC_SYS}")
98