You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We try to test as many available compilers and platforms as possible.
86
104
A list of tested compilers which are currently not working and the respective issue are listed below.
87
105
@@ -132,7 +150,7 @@ To test your build, run the test suite after the build has finished with
132
150
cmake --build build --target test
133
151
```
134
152
135
-
Please report failing tests on our [issue tracker](https://github.com/fortran-lang/stdlib/issues/new/choose) including details on the compiler used, the operating system and platform architecture.
153
+
Please report failing tests on our [issue tracker](https://github.com/fortran-lang/stdlib/issues/new/choose) including details of the compiler used, the operating system and platform architecture.
136
154
137
155
To install the project to the declared prefix run
138
156
@@ -158,6 +176,36 @@ make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4
158
176
```
159
177
160
178
179
+
180
+
## Using stdlib in your project
181
+
182
+
The stdlib project exports CMake package files and pkg-config files to make stdlib usable for other projects.
183
+
The package files are located in the library directory in the installation prefix.
184
+
185
+
For CMake builds of stdlib you can find a local installation with
186
+
187
+
```cmake
188
+
find_package(fortran_stdlib REQUIRED)
189
+
...
190
+
target_link_libraries(
191
+
${PROJECT_NAME}
192
+
PRIVATE
193
+
fortran_stdlib::fortran_stdlib
194
+
)
195
+
```
196
+
197
+
To make the installed stdlib project discoverable add the stdlib directory to the ``CMAKE_PREFIX_PATH``.
198
+
The usual install localtion of the package files is ``$PREFIX/lib/cmake/fortran_stdlib``.
199
+
200
+
For non-CMake build systems (like make) you can use the exported pkg-config file by setting ``PKG_CONFIG_PATH`` to include the directory containing the exported pc-file.
201
+
The usual install location of the pc-file is ``$PREFIX/lib/pkgconfig``.
202
+
In make you can obtain the required compile and link arguments with
Documentation is a work in progress (see issue [#4](https://github.com/fortran-lang/stdlib/issues/4)) but already available at [stdlib.fortran-lang.org](https://stdlib.fortran-lang.org).
0 commit comments