| 1 | | = Creating new component = |
| 2 | | |
| 3 | | Go to source directory ```src/_NewComponent```. |
| 4 | | |
| 5 | | {{{ |
| 6 | | cd src |
| 7 | | cd _NewComponent |
| 8 | | }}} |
| 9 | | |
| 10 | | Run a script that will create a new component (Windows batch file ```.bat``` / Unix script ```.sh```) with one argument -- component name. |
| 11 | | |
| 12 | | {{{ |
| 13 | | NewComponent.bat MyComponentName |
| 14 | | }}} |
| 15 | | or |
| 16 | | {{{ |
| 17 | | ./NewComponent.sh MyComponentName |
| 18 | | }}} |
| 19 | | |
| 20 | | It will use CMake to create a new component (it can take some time when used for the first time). |
| 21 | | Component files will be added to ```src/MyComponentName```. |
| 22 | | |
| 23 | | In order to add this component to the project, just add this line to ```src/CMakeLists.txt```. |
| 24 | | {{{ |
| 25 | | add_directory(MyComponentName) |
| 26 | | }}} |