add_library(authdb-ad SHARED
    ad.cpp
)

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

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

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

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