Files
test2/source/blender/simulation/CMakeLists.txt
Ray molenkamp dbb2844ed9 Cleanup: CMake: Modernize bf_functions dependencies
Pretty straightforward

- Remove any bf_functions 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/115427
2023-11-28 01:14:15 +01:00

48 lines
759 B
CMake

# SPDX-FileCopyrightText: 2014 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
.
intern
../blenkernel
../makesrna
../nodes
)
set(INC_SYS
${EIGEN3_INCLUDE_DIRS}
)
set(SRC
intern/SIM_mass_spring.cc
intern/hair_volume.cc
intern/implicit_blender.cc
intern/implicit_eigen.cc
intern/ConstrainedConjugateGradient.h
intern/eigen_utils.h
intern/implicit.h
SIM_mass_spring.h
)
set(LIB
bf_blenkernel
PRIVATE bf::blenlib
PRIVATE bf::depsgraph
PRIVATE bf::dna
PRIVATE bf::functions
PRIVATE bf::imbuf
PRIVATE bf::intern::guardedalloc
)
if(WITH_OPENMP AND WITH_OPENMP_STATIC)
list(APPEND LIB
${OpenMP_LIBRARIES}
)
endif()
blender_add_lib(bf_simulation "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")