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
Copy file name to clipboardExpand all lines: docs/get-started/index.rst
+18-4
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,18 @@ Update cloned to latest version
57
57
Add library to project
58
58
^^^^^^^^^^^^^^^^^^^^^^
59
59
60
-
At this point it is assumed that you have successfully download library, either cloned it or from releases page.
61
-
Next step is to add the library to the project, by means of source files to compiler inputs and header files in search path
60
+
At this point it is assumed that you have successfully download library, either with ``git clone`` command or with manual download from the library releases page.
61
+
Next step is to add the library to the project, by means of source files to compiler inputs and header files in search path.
62
+
63
+
*CMake* is the main supported build system. Package comes with the ``CMakeLists.txt`` and ``library.cmake`` files, both located in the ``lwmem`` directory:
64
+
65
+
* ``library.cmake``: It is a fully configured set of variables and with library definition. User can include this file to the project file with ``include(path/to/library.cmake)`` and then manually use the variables provided by the file, such as list of source files, include paths or necessary compiler definitions. It is up to the user to properly use the this file on its own.
66
+
* ``CMakeLists.txt``: It is a wrapper-only file and includes ``library.cmake`` file. It is used for when user wants to include the library to the main project by simply calling *CMake* ``add_subdirectory`` command, followed by ``target_link_libraries`` to link external library to the final project.
67
+
68
+
.. tip::
69
+
Open ``library.cmake`` and analyze the provided information. Among variables, you can also find list of all possible exposed libraries for the user.
70
+
71
+
If you do not use the *CMake*, you can do the following:
62
72
63
73
* Copy ``lwmem`` folder to your project, it contains library files
64
74
* Add ``lwmem/src/include`` folder to `include path` of your toolchain. This is where `C/C++` compiler can find the files during compilation process. Usually using ``-I`` flag
@@ -70,15 +80,19 @@ Configuration file
70
80
^^^^^^^^^^^^^^^^^^
71
81
72
82
Configuration file is used to overwrite default settings defined for the essential use case.
73
-
Library comes with template config file, which can be modified according to needs.
83
+
Library comes with template config file, which can be modified according to the application needs.
74
84
and it should be copied (or simply renamed in-place) and named ``lwmem_opts.h``
0 commit comments