mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
17 lines
409 B
CMake
17 lines
409 B
CMake
#find_package(GLEW)
|
|
if(NOT GLEW_FOUND)
|
|
find_package(OpenGL REQUIRED)
|
|
add_library(glew STATIC
|
|
GL/glew.h
|
|
GL/glxew.h
|
|
GL/wglew.h
|
|
glew.c
|
|
)
|
|
target_link_libraries(glew PUBLIC ${OPENGL_LIBRARIES})
|
|
target_compile_definitions(glew PUBLIC GLEW_STATIC)
|
|
target_include_directories(glew PUBLIC . ${OPENGL_INCLUDE_DIR})
|
|
set_target_properties(glew PROPERTIES
|
|
EXCLUDE_FROM_ALL ON
|
|
)
|
|
endif()
|