set(PROJECT_VERSION_MAJOR 0)
set(PROJECT_VERSION_MINOR 10)
set(PROJECT_VERSION_PATCH 0)

set(PROJECT_PACKAGE_DESCRIPTION_SUMMARY "The Kubernetes client library for the C programming language.")
set(PROJECT_PACKAGE_VENDOR "https://github.com/kubernetes-client")
set(PROJECT_PACKAGE_CONTACT "https://github.com/kubernetes-client/c")
set(PROJECT_PACKAGE_MAINTAINER "https://github.com/kubernetes-client/c")

# config.h checks
include(ConfigureChecks.cmake)
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)

list(APPEND SRCS
        config/kube_config_model.c
        config/kube_config_yaml.c
        config/kube_config_util.c
        config/kube_config.c
        config/incluster_config.c
        config/exec_provider.c
        config/authn_plugin/authn_plugin_util.c
        config/authn_plugin/authn_plugin.c
        watch/watch_util.c
        websocket/wsclient.c
        websocket/kube_exec.c
        model/int_or_string.c
        src/generic.c
        src/utils.c)

list(APPEND HDRS
        config/kube_config_common.h
        config/kube_config_model.h
        config/kube_config_yaml.h
        config/kube_config_util.h
        config/kube_config.h
        config/incluster_config.h
        config/exec_provider.h
        config/authn_plugin/authn_plugin_util.h
        config/authn_plugin/authn_plugin.h
        watch/watch_util.h
        websocket/wsclient.h
        websocket/kube_exec.h
        model/int_or_string.h
        include/generic.h
        include/utils.h)

find_package(Libwebsockets CONFIG REQUIRED)
find_package(yaml CONFIG REQUIRED)