Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GPUTextEngine #411

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ endif()

add_library(${sdl3_ttf_target_name}
src/SDL_hashtable.c
src/SDL_gpu_textengine.c
src/SDL_renderer_textengine.c
src/SDL_surface_textengine.c
src/SDL_ttf.c
Expand Down Expand Up @@ -364,6 +365,7 @@ if(SDLTTF_SAMPLES)
add_executable(glfont examples/glfont.c)
add_executable(showfont examples/showfont.c examples/editbox.c)
add_executable(testapp examples/testapp.c)
add_executable(testgputext examples/testgputext.c)

set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL)
Expand All @@ -375,10 +377,10 @@ if(SDLTTF_SAMPLES)
target_link_libraries(glfont PRIVATE OpenGL::GL)
endif()

foreach(prog glfont showfont testapp)
foreach(prog glfont showfont testapp testgputext)
sdl_add_warning_options(${prog} WARNING_AS_ERROR ${SDLTTF_WERROR})
target_link_libraries(${prog} PRIVATE SDL3_ttf::${sdl3_ttf_target_name})
target_link_libraries(${prog} PRIVATE ${sdl3_target_name})
target_link_libraries(${prog} PRIVATE SDL3_ttf::${sdl3_ttf_target_name} m)
target_link_libraries(${prog} PRIVATE ${sdl3_target_name} m)

if(SDLTTF_SAMPLES_INSTALL)
install(TARGETS ${prog}
Expand Down
Loading
Loading