diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2019-12-16 17:41:07 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2019-12-16 18:29:08 +0300 |
commit | 2aa4301c88aac15d81e08b1f5ac24da2a9279243 (patch) | |
tree | fc4819b647d7bd229abfb71efe2cdc11b88334be /intern/mantaflow/CMakeLists.txt | |
parent | 4ff7c5eed6b546ae42692f3a869a5ccc095a9cb4 (diff) |
Mantaflow [Part 2]: Added fluid wrapper files
Files from /intern/mantaflow handle the communication between core Blender code and Mantaflow itself. It's the bridge to communicate with Mantas Python functions.
Code from /intern/mantaflow/intern/strings/ is pure Manta code and would likely need less attention in the review.
Reviewed By: sergey
Maniphest Tasks: T59995
Differential Revision: https://developer.blender.org/D3851
Diffstat (limited to 'intern/mantaflow/CMakeLists.txt')
-rw-r--r-- | intern/mantaflow/CMakeLists.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/intern/mantaflow/CMakeLists.txt b/intern/mantaflow/CMakeLists.txt new file mode 100644 index 00000000000..9fdd8b59aca --- /dev/null +++ b/intern/mantaflow/CMakeLists.txt @@ -0,0 +1,67 @@ +# ***** BEGIN GPL LICENSE BLOCK ***** +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# The Original Code is Copyright (C) 2019, Blender Foundation +# All rights reserved. +# +# The Original Code is: all of this file. +# +# Contributor(s): Sebastian Barschkis (sebbas) +# +# ***** END GPL LICENSE BLOCK ***** + +add_definitions(-DWITH_FLUID=1) + +if(WITH_OPENVDB) + add_definitions(-DOPENVDB=1) +endif() + +set(INC + extern + intern/strings + ../../source/blender/makesdna + ../../source/blender/blenlib +) + +# Python is always required +add_definitions(-DWITH_PYTHON) + +set(INC_SYS + ../../extern/mantaflow/helper/util + ../../extern/mantaflow/helper/pwrapper + ../../extern/mantaflow/preprocessed + ${PYTHON_INCLUDE_DIRS} + ${ZLIB_INCLUDE_DIRS} +) + +set(SRC + intern/manta_python_API.cpp + intern/manta_fluid_API.cpp + intern/MANTA_main.cpp + + extern/manta_python_API.h + extern/manta_fluid_API.h + intern/MANTA_main.h + intern/strings/fluid_script.h + intern/strings/smoke_script.h + intern/strings/liquid_script.h +) + +set(LIB + extern_mantaflow +) + +blender_add_lib(bf_intern_mantaflow "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") |