@@ -23,14 +23,14 @@ Using this command several cache variables can be set:
2323* _7BIT_DI_BUILD_TESTS: ["ON", "OFF"] ("OFF") - Turn on to build tests (requires Gtest _ to be installed, see `Build Library With Conan `_)
2424* _7BIT_DI_BUILD_EXAMPLES: ["ON", "OFF"] ("OFF") - Turn on to build examples
2525* _7BIT_DI_BUILD_SINGLE_HEADER: ["ON", "OFF"] ("OFF") - Turn on to build single header SevenBitDI.hpp (requires Quom _ to be installed)
26- * _7BIT_DI_INSTALL: ["ON", "OFF"] ("OFF") - Turn on to install the library (output is in build/publish)
26+ * _7BIT_DI_INSTALL: ["ON", "OFF"] ("OFF") - Turn on to install the library
2727
2828to set cache variable pass additional option: -D<variable cache name>=[value]
2929for example, this command will set the library type to Static and will force examples built
3030
3131.. code-block :: sh
3232
33- cmake .. -DCMAKE_BUILD_TYPE=Release -D_7BIT_DI_INSTALL=ON - D_7BIT_DI_LIBRARY_TYPE=Static -D_7BIT_DI_BUILD_EXAMPLES=true
33+ cmake .. -DCMAKE_BUILD_TYPE=Release -D_7BIT_DI_LIBRARY_TYPE=Static -D_7BIT_DI_BUILD_EXAMPLES=true
3434
3535 Build the library using the command:
3636
@@ -65,14 +65,24 @@ Configure the CMake project, and add also toolchain file as a CMAKE_TOOLCHAIN_FI
6565
6666.. code-block :: sh
6767
68- cmake .. -DCMAKE_TOOLCHAIN_FILE:PATH=" ./conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release -D_7BIT_DI_BUILD_TESTS=ON -D_7BIT_DI_INSTALL=ON
68+ cmake .. -DCMAKE_TOOLCHAIN_FILE:PATH=" ./conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release -D_7BIT_DI_BUILD_TESTS=ON
6969
7070 Build the library using the command:
7171
7272.. code-block :: sh
7373
7474 cmake --build .
7575
76+
77+ Install Library
78+ ^^^^^^^^^^^^^^^^^^^^^^^^^
79+
80+ To install the library set additional cache variables _7BIT_DI_BUILD_TESTS=ON and specify installation dir with CMAKE_INSTALL_PREFIX, then run the command
81+
82+ .. code-block :: sh
83+
84+ cmake --build . --config Release --target install
85+
7686 .. _Cmake : https://cmake.org/
7787.. _`Cmake Installation` : https://cmake.org/download/
7888.. _Sphinx : https://www.sphinx-doc.org/en/master/
0 commit comments