\documentclass{scrbook}
\usepackage[xindy,toc,numberline]{glossaries}
\makeglossaries

\newglossaryentry{gls:set}{name=set,description={A collection of distinct objects}}
\glsaddall

\begin{document}
\tableofcontents
\printglossaries
\end{document}