cmake_minimum_required(VERSION 3.16)
project(docs VERSION 8.12.0)

# Homebrew ships libarchive keg only, include dirs have to be set manually
# Thats fragile crap but we are not allowed to ship it on macOS anyway.
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set(LibArchive_INCLUDE_DIR "/opt/homebrew/opt/libarchive/include")
endif()

find_package(Albert REQUIRED)
find_package(LibArchive REQUIRED)

albert_plugin(
    LINK PRIVATE LibArchive::LibArchive
    QT Network Sql Widgets Concurrent
)
