Skip to content

Commit

Permalink
reorder paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
wusatosi authored Feb 24, 2025
1 parent 04a34c1 commit a9ce654
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,23 @@ include an appropriate `beman.exemplar` header from your source code.
How you will link your project against `beman.exemplar` will depend on your build system.
CMake instructions are provided in following sections.

### Linking your project to beman.exemplar with CMake

For CMake based projects,
you will need to use the `beman.exemplar` CMake module
to define the `beman::exemplar` CMake target:

```cmake
find_package(beman.exemplar REQUIRED)
```

You will also need to add `beman::exemplar` to the link libraries of
any libraries or executables that include beman.exemplar's header file.

```cmake
target_link_libraries(yourlib PUBLIC beman::exemplar)
```

### Produce beman.exemplar static library locally

You can include exemplar's headers locally
Expand All @@ -315,7 +332,7 @@ cmake --workflow --preset gcc-release
cmake --install build/gcc-release --prefix /opt/beman.exemplar
```

This will generate such project structure at `/opt/beman.exemplar`.
This will generate such directory structure at `/opt/beman.exemplar`.

```txt
/opt/beman.exemplar
Expand All @@ -327,23 +344,6 @@ This will generate such project structure at `/opt/beman.exemplar`.
└── libbeman.exemplar.a
```

### Linking your project to beman.exemplar with CMake

For CMake based projects,
you will need to use the `beman.exemplar` CMake module
to define the `beman::exemplar` CMake target:

```cmake
find_package(beman.exemplar REQUIRED)
```

You will also need to add `beman::exemplar` to the link libraries of
any libraries or executables that include beman.exemplar's header file.

```cmake
target_link_libraries(yourlib PUBLIC beman::exemplar)
```

## Contributing

Please do!
Expand Down

0 comments on commit a9ce654

Please sign in to comment.