1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 03:58:12 +00:00
serenity/Userland/Libraries/LibAccelGfx/CMakeLists.txt
Andrew Kaster 49d21619d4 CMake: Use a helper file to find GL and EGL in a platform agnostic way
Also add a flag to turn off accelerated graphics entirely.
2023-10-31 02:32:58 -06:00

12 lines
262 B
CMake

include(accelerated_graphics)
if (HAS_ACCELERATED_GRAPHICS)
set(SOURCES
Canvas.cpp
Context.cpp
Painter.cpp
)
serenity_lib(LibAccelGfx accelgfx)
target_link_libraries(LibAccelGfx PRIVATE LibGfx ${ACCEL_GFX_LIBS})
endif()