Pretty straightforward - Remove any bf_depsgraph paths from INC - Add a dependency though LIB when missing context: https://devtalk.blender.org/t/cmake-cleanup/30260 Pull Request: https://projects.blender.org/blender/blender/pulls/115422
65 lines
1.1 KiB
CMake
65 lines
1.1 KiB
CMake
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
../include
|
|
../../blenkernel
|
|
../../blentranslation
|
|
../../gpu
|
|
../../makesrna
|
|
../../windowmanager
|
|
../../../../intern/mantaflow/extern
|
|
# RNA_prototypes.h
|
|
${CMAKE_BINARY_DIR}/source/blender/makesrna
|
|
)
|
|
|
|
set(INC_SYS
|
|
)
|
|
|
|
set(SRC
|
|
dynamicpaint_ops.cc
|
|
particle_boids.cc
|
|
particle_edit.cc
|
|
particle_edit_undo.cc
|
|
particle_object.cc
|
|
physics_fluid.cc
|
|
physics_ops.cc
|
|
physics_pointcache.cc
|
|
rigidbody_constraint.cc
|
|
rigidbody_object.cc
|
|
rigidbody_world.cc
|
|
|
|
particle_edit_utildefines.h
|
|
physics_intern.h
|
|
)
|
|
|
|
set(LIB
|
|
bf_blenkernel
|
|
PRIVATE bf::blenlib
|
|
PRIVATE bf::depsgraph
|
|
PRIVATE bf::dna
|
|
PRIVATE bf::intern::clog
|
|
PRIVATE bf::intern::guardedalloc
|
|
)
|
|
|
|
if(WITH_MOD_FLUID)
|
|
list(APPEND LIB
|
|
bf_intern_mantaflow
|
|
)
|
|
add_definitions(-DWITH_FLUID)
|
|
endif()
|
|
|
|
if(WITH_BULLET)
|
|
list(APPEND INC
|
|
../../../../intern/rigidbody
|
|
)
|
|
add_definitions(-DWITH_BULLET)
|
|
endif()
|
|
|
|
|
|
blender_add_lib(bf_editor_physics "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
# RNA_prototypes.h
|
|
add_dependencies(bf_editor_physics bf_rna)
|