Cleanup: remove contributors for CMake files
[blender.git] / intern / elbeem / 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         extern
23         ../guardedalloc
24 )
25
26 set(INC_SYS
27         ${PNG_INCLUDE_DIRS}
28         ${ZLIB_INCLUDE_DIRS}
29 )
30
31 set(SRC
32         intern/attributes.cpp
33         intern/controlparticles.cpp
34         intern/elbeem.cpp
35         intern/elbeem_control.cpp
36         intern/isosurface.cpp
37         intern/mvmcoords.cpp
38         intern/ntl_blenderdumper.cpp
39         intern/ntl_bsptree.cpp
40         intern/ntl_geometrymodel.cpp
41         intern/ntl_geometryobject.cpp
42         intern/ntl_lighting.cpp
43         intern/ntl_ray.cpp
44         intern/ntl_world.cpp
45         intern/parametrizer.cpp
46         intern/particletracer.cpp
47         intern/simulation_object.cpp
48         intern/solver_adap.cpp
49         intern/solver_control.cpp
50         intern/solver_init.cpp
51         intern/solver_interface.cpp
52         intern/solver_main.cpp
53         intern/solver_util.cpp
54         intern/utilities.cpp
55
56         extern/LBM_fluidsim.h
57         extern/elbeem.h
58         intern/attributes.h
59         intern/controlparticles.h
60         intern/elbeem_control.h
61         intern/isosurface.h
62         intern/loop_tools.h
63         intern/mcubes_tables.h
64         intern/mvmcoords.h
65         intern/ntl_blenderdumper.h
66         intern/ntl_bsptree.h
67         intern/ntl_geometryclass.h
68         intern/ntl_geometrymodel.h
69         intern/ntl_geometryobject.h
70         intern/ntl_geometryshader.h
71         intern/ntl_lighting.h
72         intern/ntl_matrices.h
73         intern/ntl_ray.h
74         intern/ntl_vector3dim.h
75         intern/ntl_world.h
76         intern/paraloopend.h
77         intern/parametrizer.h
78         intern/particletracer.h
79         intern/simulation_object.h
80         intern/solver_class.h
81         intern/solver_control.h
82         intern/solver_interface.h
83         intern/solver_relax.h
84         intern/utilities.h
85         intern/globals.h
86 )
87
88 # elbeem has some harmless UNUSED warnings
89 remove_strict_flags()
90
91 add_definitions(
92         -DNOGUI
93         -DELBEEM_BLENDER=1
94 )
95
96 # not essential but quiet gcc's -Wundef
97 add_definitions(
98         -DLBM_PRECISION=1
99         -DLBM_INCLUDE_TESTSOLVERS=0
100         -DFSGR_STRICT_DEBUG=0
101         -DELBEEM_MPI=0
102         -DNEWDIRVELMOTEST=0
103 )
104
105 if(WIN32)
106         # We need BLI_gzopen on win32 for unicode paths
107         add_definitions(
108                 -DLBM_GZIP_OVERRIDE_H="${CMAKE_SOURCE_DIR}/source/blender/blenlib/BLI_fileops.h"
109                 -D LBM_GZIP_OPEN_FN="\(gzFile\)BLI_gzopen"
110         )
111 endif()
112
113 if(WITH_OPENMP)
114         add_definitions(-DPARALLEL=1)
115 else()
116         add_definitions(-DPARALLEL=0)
117 endif()
118
119 blender_add_lib_nolist(bf_intern_elbeem "${SRC}" "${INC}" "${INC_SYS}")