diff options
Diffstat (limited to 'source/blender/blenloader/CMakeLists.txt')
-rw-r--r-- | source/blender/blenloader/CMakeLists.txt | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt index 5ca026ae9a3..f0209d1337c 100644 --- a/source/blender/blenloader/CMakeLists.txt +++ b/source/blender/blenloader/CMakeLists.txt @@ -19,6 +19,7 @@ set(INC ../windowmanager ../../../intern/clog ../../../intern/guardedalloc + ../bmesh # for writefile.c: dna_type_offsets.h ${CMAKE_BINARY_DIR}/source/blender/makesdna/intern @@ -32,24 +33,25 @@ set(INC_SYS set(SRC ${CMAKE_SOURCE_DIR}/release/datafiles/userdef/userdef_default_theme.c - intern/blend_validate.c - intern/readblenentry.c - intern/readfile.c - intern/readfile_tempload.c - intern/undofile.c + intern/blend_validate.cc + intern/readblenentry.cc + intern/readfile.cc + intern/readfile_tempload.cc + intern/undofile.cc intern/versioning_250.c intern/versioning_260.c intern/versioning_270.c intern/versioning_280.c intern/versioning_290.c - intern/versioning_300.c + intern/versioning_300.cc + intern/versioning_400.cc intern/versioning_common.cc intern/versioning_cycles.c intern/versioning_defaults.c intern/versioning_dna.c intern/versioning_legacy.c intern/versioning_userdef.c - intern/writefile.c + intern/writefile.cc BLO_blend_defs.h BLO_blend_validate.h @@ -81,6 +83,17 @@ if(WITH_ALEMBIC) add_definitions(-DWITH_ALEMBIC) endif() +if(WITH_TBB) + list(APPEND INC_SYS + ${TBB_INCLUDE_DIRS} + ) + add_definitions(-DWITH_TBB) +endif() + +if(WIN32) + add_definitions(-DNOMINMAX) +endif() + blender_add_lib(bf_blenloader "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") # needed so writefile.c can use dna_type_offsets.h |