A repository for learning Git, C/C++ and CMake in SUAI
Tasks for laboratory works: Google Docs
My formatted Lab tasks: TASKS.md
Formatted reports: Google Drive
- C++17 compiler (GCC, Clang, MSVC)
- CMake 3.12+ (3.20+ recommended)
Tested on:
- GCC 12.2.0 (MinGW-w64, Windows 10)
- GCC 9.4.0 (Ubuntu 20.04, WSL2)
Some labs may require additional libraries / tools:
- nlohmann/json (for Lab 17 dop)
- Graphviz (for Lab 20 dop)
-
Clone the repository
git clone https://github.com/cypotat/cpplabs.git
-
Create a build directory
mkdir build cd build
-
Generate build files
cmake ..
-
Build the project
cmake --build .
If you want to build a specific lab, you can specify the target name
cmake --build . --target Lab_20_dop
If you want to build a debug version, you can specify the build type
cmake --build . --config Debug