cmake_minimum_required(VERSION 3.8)
project(zlib_vendor)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)

include(FetchContent)
FetchContent_Declare(
  zlib_vendor
  URL https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz
)

set(CMAKE_BUILD_TYPE Release)
set(ZLIB_BUILD_EXAMPLES OFF CACHE BOOL "ZLIB_BUILD_EXAMPLES" FORCE)

FetchContent_MakeAvailable(zlib_vendor)

