Pretty straightforward - Remove any curve_fit_nd 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/110762
50 lines
849 B
CMake
50 lines
849 B
CMake
# SPDX-FileCopyrightText: 2023 Blender Foundation
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
../include
|
|
../../blenkernel
|
|
../../blentranslation
|
|
../../depsgraph
|
|
../../gpu
|
|
../../makesrna
|
|
../../windowmanager
|
|
../../../../intern/clog
|
|
# RNA_prototypes.h
|
|
${CMAKE_BINARY_DIR}/source/blender/makesrna
|
|
)
|
|
|
|
set(INC_SYS
|
|
)
|
|
|
|
set(SRC
|
|
curve_ops.cc
|
|
editcurve.cc
|
|
editcurve_add.cc
|
|
editcurve_paint.cc
|
|
editcurve_pen.cc
|
|
editcurve_query.cc
|
|
editcurve_select.cc
|
|
editcurve_undo.cc
|
|
editfont.cc
|
|
editfont_undo.cc
|
|
|
|
curve_intern.h
|
|
)
|
|
|
|
set(LIB
|
|
bf_blenkernel
|
|
PRIVATE bf::blenlib
|
|
PRIVATE bf::dna
|
|
PRIVATE bf::extern::curve_fit_nd
|
|
PRIVATE bf::intern::guardedalloc
|
|
extern_curve_fit_nd
|
|
)
|
|
|
|
|
|
blender_add_lib(bf_editor_curve "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
# RNA_prototypes.h
|
|
add_dependencies(bf_editor_curve bf_rna)
|