Fix T49078: Cycles tries to render volume from another render layer when camera is...
[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 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Daniel Genrich
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         intern
28         ../memutil
29 )
30
31 set(INC_SYS
32         ${BULLET_INCLUDE_DIRS}
33         ${PNG_INCLUDE_DIRS}
34         ${ZLIB_INCLUDE_DIRS}
35 )
36
37 set(SRC
38         intern/EIGENVALUE_HELPER.cpp
39         intern/FLUID_3D.cpp
40         intern/FLUID_3D_SOLVERS.cpp
41         intern/FLUID_3D_STATIC.cpp
42         intern/LU_HELPER.cpp
43         intern/SPHERE.cpp
44         intern/WTURBULENCE.cpp
45         intern/smoke_API.cpp
46
47         extern/smoke_API.h
48         intern/EIGENVALUE_HELPER.h
49         intern/FFT_NOISE.h
50         intern/FLUID_3D.h
51         intern/IMAGE.h
52         intern/INTERPOLATE.h
53         intern/LU_HELPER.h
54         intern/MERSENNETWISTER.h
55         intern/OBSTACLE.h
56         intern/SPHERE.h
57         intern/VEC3.h
58         intern/WAVELET_NOISE.h
59         intern/WTURBULENCE.h
60         intern/tnt/jama_eig.h
61         intern/tnt/jama_lu.h
62         intern/tnt/tnt.h
63         intern/tnt/tnt_array1d.h
64         intern/tnt/tnt_array1d_utils.h
65         intern/tnt/tnt_array2d.h
66         intern/tnt/tnt_array2d_utils.h
67         intern/tnt/tnt_array3d.h
68         intern/tnt/tnt_array3d_utils.h
69         intern/tnt/tnt_cmat.h
70         intern/tnt/tnt_fortran_array1d.h
71         intern/tnt/tnt_fortran_array1d_utils.h
72         intern/tnt/tnt_fortran_array2d.h
73         intern/tnt/tnt_fortran_array2d_utils.h
74         intern/tnt/tnt_fortran_array3d.h
75         intern/tnt/tnt_fortran_array3d_utils.h
76         intern/tnt/tnt_i_refvec.h
77         intern/tnt/tnt_math_utils.h
78         intern/tnt/tnt_sparse_matrix_csr.h
79         intern/tnt/tnt_stopwatch.h
80         intern/tnt/tnt_subscript.h
81         intern/tnt/tnt_vec.h
82         intern/tnt/tnt_version.h
83 )
84
85 # quiet -Wundef
86 add_definitions(-DDDF_DEBUG=0)
87
88 if(WITH_OPENMP)
89         add_definitions(-DPARALLEL=1)
90 else()
91         add_definitions(-DPARALLEL=0)
92 endif()
93
94 if(WITH_FFTW3)
95         add_definitions(-DWITH_FFTW3)
96         list(APPEND INC_SYS
97                 ${FFTW3_INCLUDE_DIRS}
98         )
99 endif()
100
101 blender_add_lib(bf_intern_smoke "${SRC}" "${INC}" "${INC_SYS}")
102