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