9b7f3d70dd
It doesn't really matter, but it's better that our linux package doesn't depend on it.
24 lines
524 B
CMake
24 lines
524 B
CMake
# CMakeLists.txt - glew
|
|
|
|
if (NOT SERVER_ONLY)
|
|
include_directories("include")
|
|
|
|
if(APPLE)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -F/Library/Frameworks")
|
|
endif()
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
add_definitions(-DGLEW_STATIC)
|
|
|
|
add_library(glew STATIC
|
|
include/GL/glew.h include/GL/glxew.h include/GL/wglew.h
|
|
src/glew.c src/glewinfo.c
|
|
)
|
|
|
|
target_link_libraries(glew ${OPENGL_gl_LIBRARY})
|
|
|
|
endif()
|