-- Project Summary --
Before you begin, ensure you have the following installed on your system:
- GCC (GNU Compiler Collection)
- CMake (Version 3.10 or higher)
To install the required packages on Ubuntu, use the following commands:
sudo apt update
sudo apt install build-essential cmake
Follow these steps to build the project using the terminal:
-
Clone the repository (if you haven't already):
git clone https://github.com/yourusername/MyCProject.git cd MyCProject
-
Create a build directory:
mkdir build cd build
-
Generate build files using CMake:
cmake ..
-
Compile the project:
make
After building the project, run the executable from the build
directory:
./MyCProject
You should see the output:
Hello, World!
To clean up all generated files and start fresh, delete the build
directory:
cd ..
rm -rf build
This project is licensed under the MIT License - see the LICENSE file for details.
### Instructions for Creating the `README.md` File
1. Open your terminal and navigate to your project directory (`MyCProject`).
2. Create a new `README.md` file using a text editor like `nano`:
```bash
nano README.md
-
Copy the content provided above into the file.
-
Save and exit the editor (
Ctrl + X
, thenY
andEnter
).
Your project now includes a README.md
file with clear instructions on how to build and run the C project using only the terminal. This should help anyone who wants to work with or build your project. If you have any further questions or need additional details, feel free to ask!