mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
f5d2d0a5c4
Only accounting for committed files
24 lines
688 B
CMake
24 lines
688 B
CMake
find_package(GLEW)
|
|
if(NOT USE_LIBNX)
|
|
if((NOT APPLE OR USE_SYSTEM_FFMPEG) AND GLEW_FOUND)
|
|
add_library(system_glew INTERFACE)
|
|
add_library(Ext::GLEW ALIAS system_glew)
|
|
target_link_libraries(system_glew INTERFACE GLEW::GLEW)
|
|
else()
|
|
find_package(OpenGL REQUIRED)
|
|
add_library(glew STATIC
|
|
GL/glew.h
|
|
GL/glxew.h
|
|
GL/wglew.h
|
|
glew.c
|
|
)
|
|
add_library(Ext::GLEW ALIAS glew)
|
|
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()
|
|
endif()
|