Skip to content

Module Conversion Steps

Dan White edited this page Sep 24, 2013 · 28 revisions
  1. Copy module C++ source file into correct path. Look under src/Modules/Legacy to see if it is already there. a. Example: src/Modules/Legacy/Fields/AlignMeshBoundingBoxes.cc is already checked in, so nothing to do.
  2. Make a copy of the file SCIRunGUIPrototype/src/Modules/Legacy/Fields/CalculateGradients.h and rename it using the same name as the module. It will act as a template for the newly-required module header file.
  3. Edit the corresponding CMakeLists.txt file to both (a) enable/add the module .cc file, and (b) add the newly-created module header file.
  4. Under src/Modules/X/Tests, where X is the general category of your module, add a unit test source file both to the filesystem and to the corresponding CMakeLists.txt file.
Clone this wiki locally