wiki:TutorialCreatingNewComponent

Version 4 (modified by Marek Kurdej, 11 years ago) ( diff )

makefile syntax for cmake

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)
Note: See TracWiki for help on using the wiki.