Files
allegro_schrift/CMakeLists.txt

30 lines
825 B
CMake
Raw Permalink Normal View History

2026-09-12 06:38:30 +00:00
include_directories(../font)
#include_directories(SYSTEM ${FREETYPE_INCLUDE_DIRS})
2026-09-14 17:44:01 -05:00
set(TTF_SOURCES allegro_schrift.c schrift.c)
2026-09-12 06:38:30 +00:00
set(TTF_INCLUDE_FILES allegro5/allegro_ttf.h)
2026-09-12 06:38:30 +00:00
2026-09-14 17:44:01 -05:00
#set_our_header_properties(${TTF_INCLUDE_FILES})
2026-09-12 06:38:30 +00:00
#configure_file(
# allegro5/internal/aintern_ttf_cfg.h.cmake
# ${PROJECT_BINARY_DIR}/include/allegro5/internal/aintern_ttf_cfg.h
# )
add_our_addon_library(allegro_ttf
AllegroTTF-${ALLEGRO_SOVERSION}
"${TTF_SOURCES};${TTF_INCLUDE_FILES}"
"-DALLEGRO_TTF_SRC"
"${FONT_LINK_WITH};${PRIMITIVES_LINK_WITH};${TTF_LIBRARIES}"
2026-09-12 06:38:30 +00:00
)
2026-09-12 08:24:35 -05:00
#target_compile_options(allegro_ttf PRIVATE "-fsanitize=undefined" "-lasan")
2026-09-12 06:38:30 +00:00
install_our_headers(${TTF_INCLUDE_FILES})
add_addon(ttf)
#-----------------------------------------------------------------------------#
# vi: set ts=8 sts=4 sw=4 et: