mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
[CMake] ext related CMake changes for Nintendo Switch
Only accounting for committed files
This commit is contained in:
parent
5e565cff35
commit
f5d2d0a5c4
@ -142,7 +142,9 @@ endif()
|
||||
add_library(cpu_features ${CPU_FEATURES_HDRS} ${CPU_FEATURES_SRCS})
|
||||
set_target_properties(cpu_features PROPERTIES PUBLIC_HEADER "${CPU_FEATURES_HDRS}")
|
||||
setup_include_and_definitions(cpu_features)
|
||||
target_link_libraries(cpu_features PUBLIC ${CMAKE_DL_LIBS})
|
||||
if(NOT USE_LIBNX)
|
||||
target_link_libraries(cpu_features PUBLIC ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
target_include_directories(cpu_features
|
||||
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/cpu_features>
|
||||
)
|
||||
|
@ -1,21 +1,23 @@
|
||||
find_package(GLEW)
|
||||
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
|
||||
)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user