INSTALL_CMAKE.md: Update formatting (#481)
File: INSTALL_CMAKE.md Notes: Although the original text would be immediately clear to seasoned users of CMAKE and/or Unix shell, the lack of newlines may cause some confusion for newcomers. Hence, wrapping the texts in a md code-block such that the newlines appear as intended. credit: suryakalpo
Этот коммит содержится в:
родитель
ffab6960b5
Коммит
07fc1532b6
@ -20,10 +20,12 @@ Getting started
|
|||||||
If you are happy with the default options, make a new build directory,
|
If you are happy with the default options, make a new build directory,
|
||||||
change to it, configure the build environment and build the project:
|
change to it, configure the build environment and build the project:
|
||||||
|
|
||||||
|
```
|
||||||
mkdir bin
|
mkdir bin
|
||||||
cd bin
|
cd bin
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
```
|
||||||
|
|
||||||
libssh2 will be built as a static library and will use any
|
libssh2 will be built as a static library and will use any
|
||||||
cryptography library available. The library binary will be put in
|
cryptography library available. The library binary will be put in
|
||||||
@ -119,20 +121,27 @@ Tests
|
|||||||
To test the build, run the appropriate test target for your build
|
To test the build, run the appropriate test target for your build
|
||||||
system. For example:
|
system. For example:
|
||||||
|
|
||||||
|
```
|
||||||
cmake --build . --target test
|
cmake --build . --target test
|
||||||
|
```
|
||||||
or
|
or
|
||||||
|
```
|
||||||
cmake --build . --target RUN_TESTS
|
cmake --build . --target RUN_TESTS
|
||||||
|
```
|
||||||
|
|
||||||
How do I use libssh2 in my project if my project doesn't use CMake?
|
How do I use libssh2 in my project if my project doesn't use CMake?
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
|
||||||
If you are not using CMake for your own project, install libssh2
|
If you are not using CMake for your own project, install libssh2
|
||||||
|
```
|
||||||
cmake <libssh2 source location>
|
cmake <libssh2 source location>
|
||||||
cmake --build .
|
cmake --build .
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
|
```
|
||||||
or
|
or
|
||||||
|
```
|
||||||
cmake --build . --target INSTALL
|
cmake --build . --target INSTALL
|
||||||
|
```
|
||||||
|
|
||||||
and then specify the install location to your project in the normal
|
and then specify the install location to your project in the normal
|
||||||
way for your build environment. If you don't like the default install
|
way for your build environment. If you don't like the default install
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user