This is a simple C++ project that demonstrates the basic structure of a C++ application using CMake for building.
hello-world-cpp
├── src
│ └── main.cpp
├── CMakeLists.txt
└── README.md
- CMake (version 3.10 or higher)
- A C++ compiler (e.g., g++, clang++)
-
Clone the repository or download the project files.
-
Open a terminal and navigate to the project directory.
-
Create a build directory:
mkdir build cd build
-
Run CMake to configure the project:
cmake ..
-
Compile the project:
make
After building the project, you can run the application with the following command:
./hello-world-cpp
You should see the output:
Hello, World!
This project is licensed under the MIT License.