diff options
Diffstat (limited to 'extern/glew/CMakeLists.txt')
-rw-r--r-- | extern/glew/CMakeLists.txt | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/extern/glew/CMakeLists.txt b/extern/glew/CMakeLists.txt index 1c4faf04441..1a20dbdb9d7 100644 --- a/extern/glew/CMakeLists.txt +++ b/extern/glew/CMakeLists.txt @@ -24,17 +24,22 @@ # # ***** END GPL LICENSE BLOCK ***** -SET(INC include src) +set(INC + ./include +) -IF(UNIX) - SET(INC ${INC} ${X11_X11_INCLUDE_PATH}) -ENDIF(UNIX) +if(UNIX) + list(APPEND INC ${X11_X11_INCLUDE_PATH}) +endif() -SET(SRC +set(SRC src/glew.c -) -ADD_DEFINITIONS(-DGLEW_STATIC) + 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}") |