ITK/Release 4/Modularization/Add new classes: Difference between revisions
From KitwarePublic
< ITK | Release 4 | Modularization
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
It is | It is necessary to understand the structure of a module before adding a class to it, | ||
please read [http://www.itk.org/Wiki/ITK_Release_4/Modularization/_Add_a_module Add a module] first. | please read [http://www.itk.org/Wiki/ITK_Release_4/Modularization/_Add_a_module Add a module] first. | ||
Revision as of 19:43, 4 April 2011
It is necessary to understand the structure of a module before adding a class to it, please read Add a module first.
- Which module it belongs to?
The module grouping is listed in ITK/CMake/ITKGroup.cmake.
- Does the new class brings in new dependency to this module?
If yes, then you need to edit the module's dependency list in itk-module.cmake.
- Put code in the right directory
If it is a template class, put the header and the template files into "include" directory. If it is a library source class, put the cxx file into "src" directory, and the corresponding header into "include" directory. Also need to edit the src/CMakeLists.txt accordingly.
- Add unit tests
Edit the test/CMakeList.txt according to the notes in Add tests