blender/intern/iksolver/CMakeLists.txt
Sebastian Herholz 26ef9e3c06 Fix #154204: Cycles build errors when building without OSL support
This PR fixes the compilation problems when building Cycles without
OSL support and some Windows-related compile problems caused by the
'_USE_MATH_DEFINES' define.
The PR:
- Adds the cycles_util dependencies to the cycles cpu module.
- Adds the `_USE_MATH_DEFINES` as a global compiler definition when
building under Windows.
- Removes unneed setting and definitions of `_USE_MATH_DEFINES` in the code
and CMake files

Pull Request: https://projects.blender.org/blender/blender/pulls/154209
2026-02-11 12:25:41 +01:00

32 lines
540 B
CMake

# SPDX-FileCopyrightText: 2006 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
intern
../memutil
)
set(INC_SYS
)
set(SRC
intern/IK_QJacobian.cpp
intern/IK_QJacobianSolver.cpp
intern/IK_QSegment.cpp
intern/IK_QTask.cpp
intern/IK_Solver.cpp
extern/IK_solver.h
intern/IK_Math.h
intern/IK_QJacobian.h
intern/IK_QJacobianSolver.h
intern/IK_QSegment.h
intern/IK_QTask.h
)
set(LIB
PRIVATE bf::dependencies::eigen
)
blender_add_lib(bf_intern_iksolver "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")