# Copyright (c) 2024 Dominic Masters
# 
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

include(FetchContent)

add_library(font8x8 INTERFACE)
target_include_directories(font8x8 INTERFACE font8x8)

add_subdirectory(glad)

# GLFW
FetchContent_Declare(glfw URL https://github.com/glfw/glfw/releases/download/3.4/glfw-3.4.zip)
FetchContent_MakeAvailable(glfw)

# GLM
FetchContent_Declare(
  cglm
  GIT_REPOSITORY  https://github.com/recp/cglm
  GIT_TAG         1796cc5ce298235b615dc7a4750b8c3ba56a05dd
)
FetchContent_MakeAvailable(cglm)

#LibArchive
FetchContent_Declare(
  libarchive
  GIT_REPOSITORY https://github.com/libarchive/libarchive
  GIT_TAG        v3.7.6
)
FetchContent_MakeAvailable(libarchive)