mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 07:35:41 +12:00
Conditionally compile and link glad
Only include this library in the case that the OpenGL backend is enabled.
This commit is contained in:
parent
4864c51125
commit
0a605339a3
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,7 @@ set(SDL_STATIC ON CACHE BOOL "" FORCE)
|
||||||
set(SDL_SHARED OFF CACHE BOOL "" FORCE)
|
set(SDL_SHARED OFF CACHE BOOL "" FORCE)
|
||||||
set(SDL_TEST OFF CACHE BOOL "" FORCE)
|
set(SDL_TEST OFF CACHE BOOL "" FORCE)
|
||||||
add_subdirectory(third_party/SDL2)
|
add_subdirectory(third_party/SDL2)
|
||||||
add_subdirectory(third_party/glad)
|
|
||||||
add_subdirectory(third_party/toml11)
|
add_subdirectory(third_party/toml11)
|
||||||
include_directories(${SDL2_INCLUDE_DIR})
|
include_directories(${SDL2_INCLUDE_DIR})
|
||||||
include_directories(third_party/toml11)
|
include_directories(third_party/toml11)
|
||||||
|
@ -181,6 +181,8 @@ endif()
|
||||||
target_link_libraries(Alber PRIVATE dynarmic SDL2-static cryptopp)
|
target_link_libraries(Alber PRIVATE dynarmic SDL2-static cryptopp)
|
||||||
|
|
||||||
if(PANDA3DS_ENABLE_OPENGL)
|
if(PANDA3DS_ENABLE_OPENGL)
|
||||||
|
add_subdirectory(third_party/glad)
|
||||||
|
|
||||||
target_compile_definitions(Alber PUBLIC "PANDA3DS_ENABLE_OPENGL=1")
|
target_compile_definitions(Alber PUBLIC "PANDA3DS_ENABLE_OPENGL=1")
|
||||||
|
|
||||||
set(RENDERER_GL_INCLUDE_FILES include/opengl.hpp
|
set(RENDERER_GL_INCLUDE_FILES include/opengl.hpp
|
||||||
|
|
Loading…
Add table
Reference in a new issue