A short introduction to C++. The examples build on top of each other. A special focus is put on the build configuration which is based on the goto-tool for building C++, namely CMake
. The idea is to have the build system configured correctly right from the beginning, and only then move on to learn how to code.
- C++ Reference
- This is a carefully crafted encyclopedia of C++ features with examples
- The first stop for any question
- Matt Godbolt's Compiler Explorer
- An online compiler tester
- Use for testing small C++ code snippets
- Jason Turner's GitHub landing page
- Craig Scott: "Professional CMake"
- The one and only book you need about build systems
- HSF - More Modern CMake
- Building a Dual Shared and Static Library with CMake
- Example 1: The most basic build setup for an executable
- Library 1: The most basic build setup for a library
- Example 2: How to include libraries (primitive version using a specific directory)
- Example 3:
- How to include libraries using
FetchContent
- How to configure CPack to obtain release packages
- How to include libraries using
- Example 4:
- Install in a tool-specific directory
- Configure
RUNPATH
- Illustrate the effect of
LD_LIBRARY_PATH
This part is not yet written.