Succès de build contre SDL2_ttf - il fallait le flag -lSDL2_ttf

This commit is contained in:
attilavs2 2023-12-01 18:28:41 +01:00
parent d0d996c5bf
commit 4dcfed7b79
1 changed files with 1 additions and 5 deletions

View File

@ -23,10 +23,6 @@ find_package(SDL2 REQUIRED CONFIG COMPONENTS SDL2main)
find_package(SDL2_image REQUIRED)
find_package(SDL2TTF REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
include_directories(${SDL2_IMAGE_INCLUDE_DIRS})
include_directories(${SDL2TTF_INCLUDE_DIR})
endif()
set(CFLAGS -Wall -Wextra -O0 -pipe)
@ -82,7 +78,7 @@ else()
add_executable(RaycasterGame ${SOURCES})
target_link_libraries(RaycasterGame ${SDL2_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2TTF_INCLUDE_DIRS} -lm)
target_link_libraries(RaycasterGame ${SDL2_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2TTF_INCLUDE_DIRS} -lm -lSDL2_ttf)
target_compile_definitions(RaycasterGame PRIVATE SDL2)