# Config file for DuckDB package
# It defines the following variables
#
#  DuckDB_INCLUDE_DIRS - include directories for DuckDB
#  DuckDB_LIBRARIES    - libraries to link against
#  DuckDB_EXTENSIONS   - names of extensions included in this installation

set(DuckDB_EXTENSIONS "autocomplete;core_functions;icu;json;parquet;tpcds;tpch")

include(CMakeFindDependencyMacro)
find_dependency(Threads)
if("icu" IN_LIST DuckDB_EXTENSIONS AND NOT True)
    find_dependency(ICU COMPONENTS i18n uc data)
endif()

# Compute paths
get_filename_component(DuckDB_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(DuckDB_INCLUDE_DIRS "${DuckDB_CMAKE_DIR}/../../../include")

if(NOT TARGET duckdb AND NOT DuckDB_BINARY_DIR)
    include("${DuckDB_CMAKE_DIR}/DuckDBExports.cmake")
endif()

if(DuckDB_USE_STATIC_LIBS)
    set(DuckDB_LIBRARIES duckdb_static)
else()
    set(DuckDB_LIBRARIES duckdb)
endif()
