stk-code_catmod/lib/glew/CMakeLists.txt
leper 1718cb2fce FreeBSD build fixes.
Irrlicht change also submitted upstream https://sourceforge.net/p/irrlicht/patches/300/.
2015-01-02 17:58:16 +01:00

19 lines
440 B
CMake

# CMakeLists.txt - glew
include_directories("include")
if(APPLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks")
endif()
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
add_library(glew STATIC
include/GL/glew.h include/GL/glxew.h include/GL/wglew.h
src/glew.c src/glewinfo.c
)
add_definitions(-DGLEW_STATIC)