Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/CMakeLists.txt
- This file was copied from source/blender/editors/io/CMakeLists.txt.
| # ***** BEGIN GPL LICENSE BLOCK ***** | # ***** BEGIN GPL LICENSE BLOCK ***** | ||||
| # | # | ||||
| # This program is free software; you can redistribute it and/or | # This program is free software; you can redistribute it and/or | ||||
| # modify it under the terms of the GNU General Public License | # modify it under the terms of the GNU General Public License | ||||
| # as published by the Free Software Foundation; either version 2 | # as published by the Free Software Foundation; either version 2 | ||||
| # of the License, or (at your option) any later version. | # of the License, or (at your option) any later version. | ||||
| # | # | ||||
| # This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | ||||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
| # GNU General Public License for more details. | # GNU General Public License for more details. | ||||
| # | # | ||||
| # You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
| # along with this program; if not, write to the Free Software Foundation, | # along with this program; if not, write to the Free Software Foundation, | ||||
| # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| # | |||||
| # The Original Code is Copyright (C) 2021, Blender Foundation | |||||
| # All rights reserved. | |||||
| # ***** END GPL LICENSE BLOCK ***** | # ***** END GPL LICENSE BLOCK ***** | ||||
| set(INC | set(INC | ||||
| ../include | . | ||||
| ../ | |||||
| ../intern | |||||
| ../../blenkernel | ../../blenkernel | ||||
| ../../blenlib | ../../blenlib | ||||
| ../../blentranslation | ../../blentranslation | ||||
| ../../bmesh | ../../editors/include | ||||
| ../../depsgraph | ../../functions | ||||
| ../../io/alembic | |||||
| ../../io/collada | |||||
| ../../io/gpencil | |||||
| ../../io/usd | |||||
| ../../makesdna | ../../makesdna | ||||
| ../../makesrna | ../../makesrna | ||||
| ../../windowmanager | ../../windowmanager | ||||
| ../../../../intern/guardedalloc | ../../../../intern/guardedalloc | ||||
| ) | ) | ||||
| set(INC_SYS | |||||
| ) | |||||
| set(SRC | set(SRC | ||||
| io_alembic.c | nodes/legacy/node_fn_random_float.cc | ||||
| io_cache.c | |||||
| io_collada.c | |||||
| io_gpencil_export.c | |||||
| io_gpencil_import.c | |||||
| io_gpencil_utils.c | |||||
| io_ops.c | |||||
| io_usd.c | |||||
| io_alembic.h | |||||
| io_cache.h | |||||
| io_collada.h | |||||
| io_gpencil.h | |||||
| io_ops.h | |||||
| io_usd.h | |||||
| ) | |||||
| set(LIB | nodes/node_fn_align_euler_to_vector.cc | ||||
| bf_blenkernel | nodes/node_fn_boolean_math.cc | ||||
| bf_blenlib | nodes/node_fn_compare.cc | ||||
| ) | nodes/node_fn_float_to_int.cc | ||||
| nodes/node_fn_input_bool.cc | |||||
| nodes/node_fn_input_color.cc | |||||
| nodes/node_fn_input_int.cc | |||||
| nodes/node_fn_input_special_characters.cc | |||||
| nodes/node_fn_input_string.cc | |||||
| nodes/node_fn_input_vector.cc | |||||
| nodes/node_fn_random_value.cc | |||||
| nodes/node_fn_replace_string.cc | |||||
| nodes/node_fn_rotate_euler.cc | |||||
| nodes/node_fn_slice_string.cc | |||||
| nodes/node_fn_string_length.cc | |||||
| nodes/node_fn_value_to_string.cc | |||||
| if(WITH_OPENCOLLADA) | node_function_util.cc | ||||
| list(APPEND LIB | |||||
| bf_collada | |||||
| ) | |||||
| add_definitions(-DWITH_COLLADA) | |||||
| endif() | |||||
| if(WITH_ALEMBIC) | node_function_util.hh | ||||
| list(APPEND LIB | |||||
| bf_alembic | |||||
| ) | ) | ||||
| add_definitions(-DWITH_ALEMBIC) | |||||
| endif() | |||||
| if(WITH_USD) | set(LIB | ||||
| list(APPEND LIB | bf_functions | ||||
| bf_usd | |||||
| ) | ) | ||||
| add_definitions(-DWITH_USD) | |||||
| endif() | |||||
| if(WITH_INTERNATIONAL) | if(WITH_INTERNATIONAL) | ||||
| add_definitions(-DWITH_INTERNATIONAL) | add_definitions(-DWITH_INTERNATIONAL) | ||||
| endif() | endif() | ||||
| if(WITH_PUGIXML) | blender_add_lib(bf_nodes_function "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | ||||
| add_definitions(-DWITH_PUGIXML) | |||||
| endif() | |||||
| if(WITH_HARU) | if(WITH_UNITY_BUILD) | ||||
| add_definitions(-DWITH_HARU) | set_target_properties(bf_nodes_function PROPERTIES UNITY_BUILD ON) | ||||
| set_target_properties(bf_nodes_function PROPERTIES UNITY_BUILD_BATCH_SIZE 10) | |||||
| endif() | endif() | ||||
| list(APPEND LIB bf_gpencil) | |||||
| blender_add_lib(bf_editor_io "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | |||||