Skip to content

Commit ff895ce

Browse files
committed
Update README.md
1 parent 28ec7ad commit ff895ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ SharedAllocator interface is similar to `std::allocator` interface
55
so `std::allocator` can be easily replaced by `salloc::shared_allocator` (or by other `salloc::` allocators).
66

77
### adding shared_allocator to your project with CMake
8-
1. Copy files include/shared_allocator/`*.*` to your include directory
9-
(for example, include/third_party/shared_allocator or just include/shared_allocator).
10-
2. Copy files source/`*.*` to your sources directory (for example, source/shared_allocator).
11-
3. Include source/shared_allocator/CMakeLists.txt into your main CMakeLists.txt: `add_subdirectory(source/shared_allocator)`
8+
1. Copy files `include/shared_allocator/*.*` to your include directory
9+
(for example, `include/third_party/shared_allocator` or just `include/shared_allocator`).
10+
2. Copy files `source/*.*` to your sources directory (for example, `source/shared_allocator`).
11+
3. Include `source/shared_allocator/CMakeLists.txt` into your main CMakeLists.txt: `add_subdirectory(source/shared_allocator)`
1212
4. Add path to shared_allocator header files into additional include directories: `include_directories(include/third_party)`
1313
to make it possible for your compiler to find includes like `#include "shared_allocator/shared_allocator.hpp"`.
14-
5. Add link to shared_allocator library into every project's CMakeLists.txt that would be using shared_allocator<T>
15-
(or shared_allocate function and so on): `target_link_libraries(${PROJECT_NAME} shared_allocator)`
14+
5. Add link to shared_allocator library into every project's CMakeLists.txt that would be using `salloc::shared_allocator<T>`
15+
(or `shared_allocate` function and so on): `target_link_libraries(${PROJECT_NAME} shared_allocator)`
1616

1717
### example code
1818
```

0 commit comments

Comments
 (0)