28 lines
511 B
Markdown
28 lines
511 B
Markdown
# CMake C Test Project
|
|
|
|
This project is designed to learn how to structure a C project with CMake and includes a simple library (`testlib`) that implements basic functions.
|
|
|
|
## Build Instructions
|
|
1. Make the project
|
|
```bash
|
|
mkdir -p build
|
|
cmake .. --fresh
|
|
2. Run the project
|
|
```bash
|
|
make
|
|
./(the binary name)
|
|
|
|
## Method two
|
|
|
|
1. Run the script install
|
|
```bash
|
|
./install.sh | ./build/(the binary name)
|
|
|
|
## To clean the project
|
|
|
|
1. Run thee script clean
|
|
```bash
|
|
./clean.sh
|
|
|
|
|