Merged changes in the trunk up to revision 40413.
[blender.git] / extern / glew / CMakeLists.txt
index 26d10a6ca9f71bafc3dd75f7de3e4d5250ffaef8..87f8bb6e94096fa8336b67d9770b291186529e70 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(INC include src)
+set(INC
+       include
+)
+
+set(INC_SYS
 
-IF(UNIX)
-       SET(INC ${INC} ${X11_X11_INCLUDE_PATH})
-ENDIF(UNIX)
+)
 
-SET(SRC
+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
 )
 
-BLENDERLIB(extern_glew "${SRC}" "${INC}")
+add_definitions(-DGLEW_STATIC)
 
+blender_add_lib(extern_glew "${SRC}" "${INC}" "${INC_SYS}")