cmake source definitions:
[blender.git] / source / blender / editors / space_script / CMakeLists.txt
index 6d93c17..1884852 100644 (file)
 # along with this program; if not, write to the Free Software Foundation,
 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
-# The Original Code is Copyright (C) 2006, Blender Foundation
-# All rights reserved.
-#
-# The Original Code is: all of this file.
-#
 # Contributor(s): Jacques Beaurain.
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.c)
-
-SET(INC
+set(INC
+       ../include
        ../../blenkernel
+       ../../blenloader
        ../../blenlib
-       ../include
-       ../../../../intern/guardedalloc
        ../../makesdna
        ../../makesrna
        ../../windowmanager
+       ../../../../intern/guardedalloc
+)
+
+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)
-       SET(INC ${INC} ${PYTHON_INC} ../../python)
-ELSE(WITH_PYTHON)
-       ADD_DEFINITIONS(-DDISABLE_PYTHON)
-ENDIF(WITH_PYTHON)
+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}")