Version 3 (modified by 11 years ago) ( diff ) | ,
---|
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.
NewComponent.bat MyComponentName
or
./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.