52 lines
926 B
CMake
52 lines
926 B
CMake
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
../include
|
|
../../blenkernel
|
|
../../blenloader
|
|
../../blentranslation
|
|
../../bmesh
|
|
../../gpu
|
|
../../makesrna
|
|
../../windowmanager
|
|
|
|
# RNA_prototypes.h
|
|
${CMAKE_BINARY_DIR}/source/blender/makesrna
|
|
)
|
|
|
|
set(INC_SYS
|
|
)
|
|
|
|
set(SRC
|
|
buttons_context.cc
|
|
buttons_ops.cc
|
|
buttons_texture.cc
|
|
space_buttons.cc
|
|
|
|
buttons_intern.hh
|
|
)
|
|
|
|
set(LIB
|
|
PRIVATE bf::blenlib
|
|
PRIVATE bf::dna
|
|
PRIVATE bf::intern::guardedalloc
|
|
)
|
|
|
|
|
|
if(WITH_FREESTYLE)
|
|
add_definitions(-DWITH_FREESTYLE)
|
|
endif()
|
|
|
|
if(WITH_EXPERIMENTAL_FEATURES)
|
|
add_definitions(-DWITH_SIMULATION_DATABLOCK)
|
|
add_definitions(-DWITH_POINT_CLOUD)
|
|
add_definitions(-DWITH_GREASE_PENCIL_V3)
|
|
endif()
|
|
|
|
blender_add_lib(bf_editor_space_buttons "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
# RNA_prototypes.h dna_type_offsets.h
|
|
add_dependencies(bf_editor_space_buttons bf_rna)
|