cmake source definitions:
[blender.git] / source / blender / editors / space_script / CMakeLists.txt
index 165a435..1884852 100644 (file)
@@ -30,6 +30,10 @@ set(INC
        ../../../../intern/guardedalloc
 )
 
+set(INC_SYS
+       ${GLEW_INCLUDE_PATH}
+)
+
 set(SRC
        script_edit.c
        script_header.c
@@ -40,8 +44,13 @@ set(SRC
 )
 
 if(WITH_PYTHON)
-       list(APPEND INC ${PYTHON_INCLUDE_DIRS} ../../python)
+       list(APPEND INC
+               ../../python
+       )
+       list(APPEND INC_SYS
+               ${PYTHON_INCLUDE_DIRS}
+       )
        add_definitions(-DWITH_PYTHON)
 endif()
 
-blender_add_lib(bf_editor_space_script "${SRC}" "${INC}")
+blender_add_lib(bf_editor_space_script "${SRC}" "${INC}" "${INC_SYS}")