Code snippets for Advanced C++ training
by
Pascal HAVÉ
is licensed under
CC BY-NC-SA 4.0
For more details about this training, contact [email protected].
-
Any file
filename.cpp
is automatically compiled using extra filesfilename.h*
filename--*.*
-
Any file
filename--unittest.cpp
is a google test and is automatically compiled using extra filesfilename.h*
filename--*.*
-
Any file
filaname.cxx
is not compiled and usually contains explicit bugs -
type.h
contains tooltype(obj)
to get printable type name for given object argument -
Files in
src/modules
have a specific build rules
conan install ..
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../conan_toolchain.cmake ..
-
-DENABLE_STATIC_ANALYSIS=ON|OFF
: enable/disable static analysis while compiling -
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
: enableccache
as compiler cache
-
Google Benchmark as submodule in
third_party/benchmark
-
Google Test as submodule in
third_party/gtest
-
lib {fmt} as submodule in
third_party/fmt
-
oneTBB (ex: TBB) as installed component