@@ -59,16 +59,18 @@ include(FetchContent)
59
59
FetchContent_Declare(
60
60
7bitDI
61
61
GIT_REPOSITORY https://github.com/7bitcoder/7bitDI.git
62
- GIT_TAG 86228173f14f449dde88a84c549474ba43c2fd25 # proper release tag for example 1 .0.0
62
+ GIT_TAG defbeb195e11367c5906564e33748ca7494dee88 # release 2 .0.0
63
63
)
64
64
FetchContent_MakeAvailable(7bitDI)
65
+
66
+ target_link_libraries(Target 7bitDI::7bitDI)
65
67
```
66
68
67
69
### 2. Using Conan.io package manager
68
70
69
71
Download and install A [ Conan] ( https://conan.io/ ) , and create conanfile.txt in the root of your project for example:
70
72
71
- ``` txt
73
+ ```
72
74
[requires]
73
75
7bitdi/2.0.0
74
76
```
@@ -79,11 +81,14 @@ change the version to newer if available, then run the command:
79
81
conan install . --output-folder=build --build=missing
80
82
```
81
83
84
+ Follow in detail instructions available
85
+ at [ Conan Tutorial] ( https://docs.conan.io/2/tutorial/consuming_packages/build_simple_cmake_project.html )
86
+
82
87
### 3. Header only
83
88
84
89
Download source code from the most recent release,
85
- copy include folder into your project location,
86
- for example copy into the '/SevenBitDI' folder.
90
+ copy include folder into your project location.
91
+ For example copy into the '/SevenBitDI' folder.
87
92
Include this folder into the project, with [ Cmake] ( https://cmake.org/ ) , u can use:
88
93
89
94
``` cmake
@@ -101,14 +106,14 @@ Download source code from the most recent release, build or install the project
101
106
for more details see the Building Library guide
102
107
in [ Documentation] ( https://7bitdi.readthedocs.io/en/latest/getting-started.html ) .
103
108
109
+ ## Injection Rules
110
+
104
111
### The library relies on two core classes:
105
112
106
113
* ServiceCollection: class is responsible for registering services and building service provider
107
114
* ServiceProvider: class is responsible for delivering real services and managing its lifetime
108
115
109
- ## Injection Rules
110
-
111
- The dependency injection system relies heavily on template metaprogramming and it has some limitations.
116
+ The dependency injection system relies heavily on template metaprogramming, and it has some limitations.
112
117
113
118
### General
114
119
0 commit comments