Changes between Version 1 and Version 2 of Creating new component


Ignore:
Timestamp:
Nov 20, 2013, 11:31:28 AM (11 years ago)
Author:
Marek Kurdej
Comment:

renamed

Legend:

Unmodified
Added
Removed
Modified
  • Creating new component

    v1 v2  
    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 }}}