rename blenderlib to blender_add_lib
[blender.git] / source / blender / editors / render / CMakeLists.txt
index 2ecdc14..3e3d42e 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.c)
-
-SET(INC
+set(INC
+       ../include
        ../../blenfont
        ../../blenkernel
        ../../blenlib
        ../../blenloader
        ../../gpu
        ../../imbuf
-       ../include
-       ../../../../intern/guardedalloc
-       ../../../../extern/glew/include
        ../../makesdna
        ../../makesrna
-       ../../python
        ../../render/extern/include
        ../../windowmanager
+       ../../../../intern/guardedalloc
+       ../../../../extern/glew/include
 )
 
-IF(WITH_QUICKTIME)
-       SET(INC ${INC} ../../quicktime ${QUICKTIME_INC})
-       ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_QUICKTIME)
+set(SRC
+       render_internal.c
+       render_opengl.c
+       render_ops.c
+       render_preview.c
+       render_shading.c
+
+       render_intern.h
+)
 
-IF(WITH_OPENMP)
-       ADD_DEFINITIONS(-DPARALLEL=1)
-ENDIF(WITH_OPENMP)
+if(WITH_CODEC_QUICKTIME)
+       list(APPEND INC ../../quicktime ${QUICKTIME_INC})
+       add_definitions(-DWITH_QUICKTIME)
+endif()
 
-IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
-ENDIF(WIN32)
+if(WITH_OPENMP)
+       add_definitions(-DPARALLEL=1)
+endif()
 
-BLENDERLIB(bf_editor_render "${SRC}" "${INC}")
+blender_add_lib(bf_editor_render "${SRC}" "${INC}")