Changes between Initial Version and Version 1 of Creating new component


Ignore:
Timestamp:
11/20/13 11:30:07 (11 years ago)
Author:
Marek Kurdej
Comment:

moved from tutorials

Legend:

Unmodified
Added
Removed
Modified
  • Creating new component

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