These warnings can reveal errors in logic, so quiet them by checking if the features are enabled before using variables or by assigning empty strings in some cases. - Check CMAKE_THREAD_LIBS_INIT is set before use as CMake docs note that this may be left unset if it's not needed. - Remove BOOST/OPENVDB/VULKAN references when disable. - Define INC_SYS even when empty. - Remove PNG_INC from freetype (not defined anywhere).
49 lines
791 B
CMake
49 lines
791 B
CMake
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
../include
|
|
../../blenkernel
|
|
../../blenlib
|
|
../../blentranslation
|
|
../../depsgraph
|
|
../../gpu
|
|
../../makesdna
|
|
../../makesrna
|
|
../../windowmanager
|
|
../../../../intern/clog
|
|
../../../../intern/guardedalloc
|
|
../../../../extern/curve_fit_nd
|
|
# RNA_prototypes.h
|
|
${CMAKE_BINARY_DIR}/source/blender/makesrna
|
|
)
|
|
|
|
set(INC_SYS
|
|
)
|
|
|
|
set(SRC
|
|
curve_ops.c
|
|
editcurve.c
|
|
editcurve_add.c
|
|
editcurve_paint.c
|
|
editcurve_pen.c
|
|
editcurve_query.c
|
|
editcurve_select.c
|
|
editcurve_undo.c
|
|
editfont.c
|
|
editfont_undo.c
|
|
|
|
curve_intern.h
|
|
)
|
|
|
|
set(LIB
|
|
bf_blenkernel
|
|
bf_blenlib
|
|
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)
|