https://github.com/squidmin/cpp-labs
C++ / CMake sandbox project
https://github.com/squidmin/cpp-labs
cmake cpp cpp17 learning learning-exercises
Last synced: about 2 months ago
JSON representation
C++ / CMake sandbox project
- Host: GitHub
- URL: https://github.com/squidmin/cpp-labs
- Owner: squidmin
- Created: 2023-09-03T06:33:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-01T01:17:39.000Z (over 1 year ago)
- Last Synced: 2025-02-07T13:54:06.136Z (4 months ago)
- Topics: cmake, cpp, cpp17, learning, learning-exercises
- Language: C++
- Homepage:
- Size: 15.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cpp-labs
C++ sandbox project
## Install
- A compiler supporting C++17.
- CMake v3.10 or higher.## Build
Navigate to the project root.
Create a `build` directory and navigate to it:
```shell
mkdir build && cd build
```Build the project:
```shell
cmake ..
```Then, in the same directory:
```shell
make
```To compile only a specific executable:
```shell
make ExecutableName
```e.g.,
```shell
make IncrementAndDecrementOperators
```
## Run an executable
`cd` to the directory of the example:
```shell
cd ./sections/sectionXX/YY_ExecutableName
```e.g.,
```shell
cd ./sections/section01/02_DataTypes
```Run the executable:
```shell
./ExecutableName
```e.g.,
```shell
./DataTypes
```
![]()