add_library(authdb-krb5 SHARED
    krb5.cpp
)

target_include_directories(authdb-krb5
    PUBLIC
    authobj
    ${JSONC_INCLUDE_DIR}
)

target_link_libraries(authdb-krb5
    PRIVATE
    authobj
    PUBLIC
    uuidp::uuidp
    json-c::json-c
    netplus::netplus
    httppp::httppp
    confplus::confplus
)

set_target_properties(authdb-krb5 PROPERTIES
    OUTPUT_NAME "authdb-krb5"
    VERSION ${version}
    SOVERSION 0
)

install(TARGETS authdb-krb5 DESTINATION ${CMAKE_INSTALL_LIBDIR}/authdb)
install(FILES krb5.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/authdb)
