Files
test/source/blender/editors/io/CMakeLists.txt
Ray Molenkamp 5783950ac5 Revert: 0dc484f9cc bf_rna modernisation
This caused build errors on the docs builder, I can't seem to reproduce
locally, so revert for now and have another look at some point in the
future.

Sadly as these changes usually go, this took 5c515e26bb and
2f0fc7fc9f with it as well.

Pull Request: https://projects.blender.org/blender/blender/pulls/132559
2025-01-02 19:56:24 +01:00

123 lines
1.9 KiB
CMake

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
../include
../../io/alembic
../../io/collada
../../io/common
../../io/grease_pencil
../../io/ply
../../io/stl
../../io/usd
../../io/wavefront_obj
../../makesrna
${CMAKE_BINARY_DIR}/source/blender/makesrna
)
set(INC_SYS
)
set(SRC
io_alembic.cc
io_cache.cc
io_collada.cc
io_drop_import_file.cc
io_grease_pencil.cc
io_obj.cc
io_ops.cc
io_ply_ops.cc
io_stl_ops.cc
io_usd.cc
io_utils.cc
io_alembic.hh
io_cache.hh
io_collada.hh
io_drop_import_file.hh
io_grease_pencil.hh
io_obj.hh
io_ops.hh
io_ply_ops.hh
io_stl_ops.hh
io_usd.hh
io_utils.hh
)
set(LIB
PRIVATE bf::blenkernel
PRIVATE bf::blenlib
PRIVATE bf::blentranslation
PRIVATE bf::bmesh
PRIVATE bf::depsgraph
PRIVATE bf::dna
PRIVATE bf::extern::fmtlib
PRIVATE bf::intern::guardedalloc
PRIVATE bf::intern::clog
PRIVATE bf::windowmanager
)
if(WITH_OPENCOLLADA)
list(APPEND LIB
bf_io_collada
)
add_definitions(-DWITH_COLLADA)
endif()
if(WITH_IO_WAVEFRONT_OBJ)
list(APPEND LIB
bf_io_wavefront_obj
)
add_definitions(-DWITH_IO_WAVEFRONT_OBJ)
endif()
if(WITH_IO_PLY)
list(APPEND LIB
bf_io_ply
)
add_definitions(-DWITH_IO_PLY)
endif()
if(WITH_IO_STL)
list(APPEND LIB
bf_io_stl
)
add_definitions(-DWITH_IO_STL)
endif()
if(WITH_IO_GREASE_PENCIL)
list(APPEND LIB
bf_io_grease_pencil
)
add_definitions(-DWITH_IO_GREASE_PENCIL)
endif()
if(WITH_ALEMBIC)
list(APPEND LIB
bf_io_alembic
)
add_definitions(-DWITH_ALEMBIC)
endif()
if(WITH_USD)
list(APPEND INC_SYS
${USD_INCLUDE_DIRS}
)
list(APPEND LIB
bf_io_usd
)
add_definitions(-DWITH_USD)
endif()
if(WITH_PUGIXML)
add_definitions(-DWITH_PUGIXML)
endif()
if(WITH_HARU)
add_definitions(-DWITH_HARU)
endif()
blender_add_lib(bf_editor_io "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")