Merged changes in the trunk up to revision 40413.
[blender.git] / extern / glew / CMakeLists.txt
index 53ef014927c3fef17e8b29d5c337aeb5d0e8aa86..87f8bb6e94096fa8336b67d9770b291186529e70 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(INC include src)
+set(INC
+       include
+)
+
+set(INC_SYS
 
-SET(SRC
-  src/glew.c
 )
 
-BLENDERLIB(extern_glew "${SRC}" "${INC}")
+if(UNIX)
+       list(APPEND INC_SYS
+               ${X11_X11_INCLUDE_PATH}
+       )
+endif()
+
+set(SRC
+       src/glew.c
+
+       include/GL/glew.h
+       include/GL/glxew.h
+       include/GL/wglew.h
+)
+
+add_definitions(-DGLEW_STATIC)
+
+blender_add_lib(extern_glew "${SRC}" "${INC}" "${INC_SYS}")