Files
test2/source/blender/simulation/CMakeLists.txt
Ray molenkamp 07fe6c5a57 Cleanup: CMake: Modernize bf_blenkernel dependencies
Pretty straightforward

- Remove any blenkernel paths from INC
- Add a dependency though LIB

context: https://devtalk.blender.org/t/cmake-cleanup/30260

Pull Request: https://projects.blender.org/blender/blender/pulls/109939
2023-07-11 19:28:01 +02:00

46 lines
713 B
CMake

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