# C++ type-safe string formatting
# https://github.com/jarro2783/fmt

include(FetchContent)

FetchContent_Declare(freetype
  URL     ${CMAKE_CURRENT_LIST_DIR}/freetype-2.10.4.tar.gz
  URL_MD5 4934a8b61b636920bcce58e7c7f3e1a2
)

FetchContent_GetProperties(freetype)
if(NOT freetype_POPULATED)
  FetchContent_Populate(freetype)

  set(SKIP_INSTALL_ALL ON)
  add_subdirectory(${freetype_SOURCE_DIR} ${freetype_BINARY_DIR} EXCLUDE_FROM_ALL)

  # freetype does not ALIAS itself as an imported target
  add_library(freetype::freetype ALIAS freetype)
endif()
