How can I use SDL2_TTF with CMake? I am aware that SDL_ttf.h is in the same folder as SDL2, but everything I’ve seen with CMake involves using:
# Find SDL2_TTF
find_package(SDL2_ttf REQUIRED)
include_directories(${SDL2_TTF_INCLUDE_DIRS})
target_link_libraries(chip8 ${SDL2_TTF_LIBRARIES})
Which when I try to print, bring up blank. I’ve tried asking other places online, and I’ve tried researching this issue, but I couldn’t find anything. I see there is something called “FindSDL.cmake”, but I don’t know what that is, or where it is on my system
OS: Manjaro Linux x86_64
Kernel: 6.6.10-1-MANJARO
DE: Plasma 5.27.10
sdl2_ttf package: 2.20.2-1