stk-code_catmod/lib/glew/CMakeLists.txt

21 lines
493 B
CMake
Raw Normal View History

2014-09-15 02:33:46 -04:00
# CMakeLists.txt - glew
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")
2014-09-15 02:33:46 -04:00
endif()
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
add_definitions(-DGLEW_STATIC)
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
src/glew.c src/glewinfo.c
2014-09-15 02:33:46 -04:00
)
2016-09-26 05:28:19 -04:00
target_link_libraries(glew ${OPENGL_LIBRARIES})