wiki:TutorialCreatingNewComponent

Creating new component

Go to source directory src/_NewComponent.

cd src
cd _NewComponent

Run a script that will create a new component (Windows batch file .bat / Unix script .sh) with one argument -- component name.

Windows:

NewComponent.bat MyComponentName

Linux:

./NewComponent.sh MyComponentName

It will use CMake to create a new component (it can take some time when used for the first time). Component files will be added to src/MyComponentName.

In order to add this component to the project, just add this line to src/CMakeLists.txt:

add_directory(MyComponentName)
Last modified 11 years ago Last modified on Nov 21, 2013, 11:34:11 AM
Note: See TracWiki for help on using the wiki.