@@ -18,17 +18,19 @@ Configure CMake project
1818 Using this command several cache variables can be set:
1919
2020* <variable cache name>: [possible values] (default value) - Description
21- * LIBRARY_TYPE: ["Shared", "Static", "HeaderOnly"] ("HeaderOnly") - Library build type
22- * BUILD_DOCS: [true, false] (false) - Turn on to build documentation (requires Sphinx _, Breathe _ and Doxygen _ installed)
23- * BUILD_TESTS: [true, false] (false) - Turn on to build tests (requires Gtest _ to be installed, see `Build Library With Conan `_)
24- * BUILD_EXAMPLES: [true, false] (false) - Turn on to build examples
21+ * _7BIT_DI_LIBRARY_TYPE: ["Shared", "Static", "HeaderOnly"] ("Static") - Library build type
22+ * _7BIT_DI_BUILD_DOCS: ["ON", "OFF"] ("OFF") - Turn on to build documentation (requires Sphinx _, Breathe _ and Doxygen _ to be installed)
23+ * _7BIT_DI_BUILD_TESTS: ["ON", "OFF"] ("OFF") - Turn on to build tests (requires Gtest _ to be installed, see `Build Library With Conan `_)
24+ * _7BIT_DI_BUILD_EXAMPLES: ["ON", "OFF"] ("OFF") - Turn on to build examples
25+ * _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)
2527
2628to set cache variable pass additional option: -D<variable cache name>=[value]
2729for example, this command will set the library type to Static and will force examples built
2830
2931.. code-block :: sh
3032
31- cmake .. -DCMAKE_BUILD_TYPE=Release -DLIBRARY_TYPE= Static -DBUILD_EXAMPLES =true
33+ cmake .. -DCMAKE_BUILD_TYPE=Release -D_7BIT_DI_INSTALL=ON -D_7BIT_DI_LIBRARY_TYPE= Static -D_7BIT_DI_BUILD_EXAMPLES =true
3234
3335 Build the library using the command:
3436
@@ -38,7 +40,7 @@ Build the library using the command:
3840
3941
4042 Build Library With Conan
41- ^^^^^^^^^^^^^^^
43+ ^^^^^^^^^^^^^^^^^^^^^^^^^
4244
4345Gtest _ library is added to project using Conan _ package manager (`Conan Installation `_),
4446If Conan was freshly installed run detect command:
@@ -63,7 +65,7 @@ Configure the CMake project, and add also toolchain file as a CMAKE_TOOLCHAIN_FI
6365
6466.. code-block :: sh
6567
66- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=true -DCMAKE_TOOLCHAIN_FILE:STRING= " conan_toolchain.cmake "
68+ cmake .. -DCMAKE_TOOLCHAIN_FILE:PATH= " ./conan_toolchain.cmake " - DCMAKE_BUILD_TYPE=Release -D_7BIT_DI_BUILD_TESTS=ON -D_7BIT_DI_INSTALL=ON
6769
6870 Build the library using the command:
6971
@@ -78,4 +80,5 @@ Build the library using the command:
7880.. _Doxygen : https://www.doxygen.nl/
7981.. _Gtest : https://google.github.io/googletest/
8082.. _Conan : https://conan.io/
83+ .. _Quom : https://pypi.org/project/quom/
8184.. _`Conan Installation` : https://conan.io/downloads.html
0 commit comments