Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenloader/CMakeLists.txt')
-rw-r--r--source/blender/blenloader/CMakeLists.txt36
1 files changed, 28 insertions, 8 deletions
diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt
index 29b81a6f11b..4d8ac9bc4b6 100644
--- a/source/blender/blenloader/CMakeLists.txt
+++ b/source/blender/blenloader/CMakeLists.txt
@@ -24,14 +24,34 @@
#
# ***** END GPL LICENSE BLOCK *****
-FILE(GLOB SRC intern/*.c)
-
-SET(INC
- . ../../../intern/guardedalloc ../blenlib ../blenkernel
- ../makesdna ../readblenfile ../include ../makesrna
- ../python ../../kernel/gen_messaging ../bmesh
+set(INC
+ .
+ ../blenlib
+ ../blenkernel
+ ../makesdna
+ ../readblenfile
+ ../makesrna
../render/extern/include
- ${ZLIB_INC}
+ ../../../intern/guardedalloc
+ ${ZLIB_INCLUDE_DIRS}
)
-BLENDERLIB(bf_blenloader "${SRC}" "${INC}")
+set(SRC
+ intern/readblenentry.c
+ intern/readfile.c
+ intern/undofile.c
+ intern/writefile.c
+
+ BLO_readfile.h
+ BLO_soundfile.h
+ BLO_sys_types.h
+ BLO_undofile.h
+ BLO_writefile.h
+ intern/readfile.h
+)
+
+if(WITH_BUILDINFO)
+ add_definitions(-DNAN_BUILDINFO)
+endif()
+
+blender_add_lib(bf_blenloader "${SRC}" "${INC}")