rename blenderlib to blender_add_lib
[blender.git] / source / blender / editors / space_console / CMakeLists.txt
index 0cee455..d1cb716 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.c)
-
-SET(INC
+set(INC
+       ../include
        ../../blenfont
        ../../blenkernel
        ../../blenlib
        ../../blenloader
-       ../include
-       ../../../../intern/guardedalloc
        ../../makesdna
        ../../makesrna
        ../../windowmanager
+       ../../../../intern/guardedalloc
+)
+
+set(SRC
+       console_draw.c
+       console_ops.c
+       space_console.c
+
+       console_intern.h
 )
 
-IF(NOT WITH_PYTHON)
-       ADD_DEFINITIONS(-DDISABLE_PYTHON)
-ENDIF(NOT WITH_PYTHON)
+if(WITH_PYTHON)
+       add_definitions(-DWITH_PYTHON)
+endif()
 
-BLENDERLIB(bf_editor_space_console "${SRC}" "${INC}")
+blender_add_lib(bf_editor_space_console "${SRC}" "${INC}")