Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Bökelmann committed Dec 17, 2024
1 parent 0bfa6c6 commit df1efd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,15 @@ int main() {
Erstelle ein Build-Verzeichnis und führe CMake aus, um das Projekt zu bauen:

```bash
mkdir build
cd build
cmake ..
cmake --build .
cmake -B build
cmake --build build/
```

### 2. **Tests ausführen**
Führe die Tests aus, um die Bibliothek zu überprüfen:

```bash
ctest
ctest --test-dir build/
```

**Erwartete Ausgabe:**
Expand All @@ -172,7 +170,7 @@ Test passed: sayHello() works correctly.
Installiere die Bibliothek und die Header-Dateien in die Standardverzeichnisse:

```bash
sudo cmake --install .
sudo cmake --install build/
```

- Die statische Bibliothek wird nach `/usr/local/lib/libStaticLib.a` installiert.
Expand All @@ -187,10 +185,7 @@ Wechsle in das `example`-Verzeichnis und baue das Projekt:

```bash
cd ../example
mkdir build
cd build
cmake ..
cmake --build .
cmake -B build && cmake --build build/
```

### 2. **Beispiel ausführen**
Expand Down
3 changes: 2 additions & 1 deletion tests/test_staticlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ int main() {
StaticLib lib;
lib.sayHello();
std::cout << "Test passed: sayHello() works correctly." << std::endl;
return 0;
return 0;
}

0 comments on commit df1efd0

Please sign in to comment.