cmake source definitions:
[blender.git] / source / blender / editors / space_script / CMakeLists.txt
index 7abaa4d..1884852 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.c)
-
-SET(INC
+set(INC
        ../include
        ../../blenkernel
+       ../../blenloader
        ../../blenlib
        ../../makesdna
        ../../makesrna
@@ -31,10 +30,27 @@ SET(INC
        ../../../../intern/guardedalloc
 )
 
-IF(WITH_PYTHON)
-       LIST(APPEND INC ${PYTHON_INC} ../../python)
-ELSE(WITH_PYTHON)
-       ADD_DEFINITIONS(-DDISABLE_PYTHON)
-ENDIF(WITH_PYTHON)
+set(INC_SYS
+       ${GLEW_INCLUDE_PATH}
+)
+
+set(SRC
+       script_edit.c
+       script_header.c
+       script_ops.c
+       space_script.c
+
+       script_intern.h
+)
+
+if(WITH_PYTHON)
+       list(APPEND INC
+               ../../python
+       )
+       list(APPEND INC_SYS
+               ${PYTHON_INCLUDE_DIRS}
+       )
+       add_definitions(-DWITH_PYTHON)
+endif()
 
-BLENDERLIB(bf_editor_space_script "${SRC}" "${INC}")
+blender_add_lib(bf_editor_space_script "${SRC}" "${INC}" "${INC_SYS}")