Skip to content
Snippets Groups Projects
Commit 577b6de6 authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

Updata for cmake use

parent ba8fd6a9
No related branches found
No related tags found
No related merge requests found
......@@ -265,6 +265,41 @@ prepend_path("INCLUDE","/ssoft/spack/arvine/v1/opt/spack/linux-rhel7-skylake_avx
% minted options app={firstline=1,
% lastline=40}]{examples/compilationWithMakefile}
\end{frame}
\begin{frame}[t,fragile]
\frametitle{Compilation}
\framesubtitle{CMake example}
\bashfile[title={examples/compilationWithCmake/CMakeLists.txt}]{examples/compilationWithCmake/CMakeLists.txt}
% minted options app={firstline=1,
% lastline=40}]{examples/compilationWithMakefile}
\end{frame}
\begin{frame}[t,fragile]
\frametitle{Compilation}
\framesubtitle{CMake use}
\begin{itemize}
\item Go to directory \cmd{examples/compilationWithCmake}
\item \cmd{mkdir build}
\item \cmd{cd build}
\item \cmd{cmake ..}
\item \cmd{make}
\end{itemize}
\begin{consoleoutput}
$ cmake ..
-- The C compiler identification is GNU 8.4.0
-- Check for working C compiler: /ssoft/.../gcc-4.8.5/gcc-8.4.0-fgpbrrd26pxv56imea5tnqj67vxh3a64/bin/gcc
-- Check for working C compiler: /ssoft/.../gcc-4.8.5/gcc-8.4.0-fgpbrrd26pxv56imea5tnqj67vxh3a64/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/peyberne/Codes/SCM-lecture/examples/compilationWithCmake/build
\end{consoleoutput}
% minted options app={firstline=1,
% lastline=40}]{examples/compilationWithMakefile}
\end{frame}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../../SCM_slides"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment