2014-09-15 02:33:46 -04:00
|
|
|
# CMakeLists.txt - glew
|
|
|
|
|
|
|
|
include_directories("include")
|
|
|
|
|
|
|
|
if(APPLE)
|
2016-03-21 20:16:59 -04:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks")
|
2014-09-15 02:33:46 -04:00
|
|
|
endif()
|
|
|
|
|
2014-12-15 01:50:11 -05:00
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
|
2014-09-15 02:33:46 -04:00
|
|
|
add_library(glew STATIC
|
2014-09-15 07:49:06 -04:00
|
|
|
include/GL/glew.h include/GL/glxew.h include/GL/wglew.h
|
2014-09-30 01:01:38 -04:00
|
|
|
src/glew.c src/glewinfo.c
|
2014-09-15 02:33:46 -04:00
|
|
|
)
|
|
|
|
|
2014-09-15 07:49:06 -04:00
|
|
|
add_definitions(-DGLEW_STATIC)
|
2016-05-12 17:37:06 -04:00
|
|
|
add_definitions(-DGLEW_NO_GLU)
|