%\documentclass[notes,usenames,dvipsnames]{beamer}
\documentclass[usenames,dvipsnames]{beamer}
%\documentclass[usenames,dvipsnames,handout]{beamer}

\input{preamble}

% for the handout
\usepackage{pgfpages}
\setbeamertemplate{headline}{}
\addtobeamertemplate{navigation symbols}{}{%
    \usebeamerfont{footline}%
    \usebeamercolor[fg]{footline}%
    \hspace{1em}%
    \insertframenumber/\inserttotalframenumber
}

\begin{document}

\hypersetup{
  colorlinks=true,
  urlcolor=cyan
}

\title{Introduction to CMake}
\author[M. Settenvini] {
  Matteo Settenvini \\ 
  $\langle$\href{mailto:matteo@member.fsf.org}{matteo@member.fsf.org}$\rangle$
}

\date{\today}

% --------------------------------------------------

\begin{frame}
  \begin{columns}[T]
    \begin{column}{.5\textwidth}
      \titlepage
    \end{column}

    \begin{column}{.5\textwidth}
      \begin{center}
        \begin{tikzpicture}
          \node (logo) {\includegraphics[width=.6\textwidth]{images/cmake-logo.png}};
          \node (eye) at ([shift={(logo)}] -90:.55) {\includegraphics[width=.3\textwidth]{images/eye-of-god.png}};
        \end{tikzpicture}

        \vspace{1em}

      \end{center}
    \end{column}
  \end{columns}
\end{frame}

% --------------------------------------------------

\begin{frame}
  \frametitle{Table of Contents}

  \begin{multicols}{2}
    \footnotesize
    \tableofcontents
  \end{multicols}
\end{frame}

% --------------------------------------------------

\section{CMake as a language}
\input{cmake-for-scripting}

\section{Setting up a CMake project}
\input{usage-of-targets}
\input{project-handling}

\section{Starting from today}
\input{starting-from-today}

\section{Outro}
\input{outro}

% --------------------------------------------------

\end{document}
