Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add appropriate code for CMake code.
  • Loading branch information
przemek83 authored Jan 5, 2025
1 parent 1ba506e commit 6e2fb70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ As a result of compilation, binary for simulations and binary for testing should

### CMake integration
Use `FetchContent` CMake module in your project:
```
```cmake
include(FetchContent)
FetchContent_Declare(
Expand All @@ -71,7 +71,7 @@ FetchContent_Declare(
FetchContent_MakeAvailable(wble)
```
From that moment, wble library can be used in the `target_link_libraries` command:
```
```cmake
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} shared wble)
```
Expand Down

0 comments on commit 6e2fb70

Please sign in to comment.