Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions 02-cmake/02-cmake.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

\lstdefinestyle{CStyle}{
language=C, % Set the language to C
basicstyle=\ttfamily\footnotesize\linespread{0.9}\tiny, % Set font style and size
basicstyle=\ttfamily\scriptsize, % Set font style and size
keywordstyle=\color{blue}, % Color of keywords
commentstyle=\color{gray}, % Color of comments
stringstyle=\color{red}, % Color of strings
Expand All @@ -30,6 +30,8 @@
xrightmargin=15pt, % Add left padding (approx. 2.8mm or 10px)
}

\lstset{basicstyle=\ttfamily\footnotesize, breaklines=true, breakatwhitespace=false, columns=fullflexible, keepspaces=true}

\title[CMake]{CMake}
\author{Obolenskiy Arseniy, Nesterov Alexander}
\institute{ITLab}
Expand Down Expand Up @@ -115,7 +117,7 @@ \section{Building C++ projects}
\end{itemize}
\end{frame}

\begin{frame}[fragile]{Simple library example}
\begin{frame}[fragile]{Simple library example: library}
Assuming there is a simple library that contains a function \texttt{add}:

\lstset{style=CStyle, caption=add.h}
Expand All @@ -136,6 +138,10 @@ \section{Building C++ projects}
return x + y;
}
\end{lstlisting}
\end{frame}

\begin{frame}[fragile]{Simple library example: main}
Usage of the library:

\lstset{style=CStyle, caption=main.cpp}
\begin{lstlisting}
Expand Down
4 changes: 2 additions & 2 deletions 02-cmake/02-cmake.toc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
\beamer@sectionintoc {1}{Building C++ projects}{3}{0}{1}
\beamer@sectionintoc {2}{Build systems history}{10}{0}{2}
\beamer@sectionintoc {3}{CMake}{19}{0}{3}
\beamer@sectionintoc {2}{Build systems history}{11}{0}{2}
\beamer@sectionintoc {3}{CMake}{20}{0}{3}