Переглянути джерело

Updated schema to handle slicer command line plugins.

Updated CMakelists. Exported module reader class.
Yves Martelli 13 роки тому
батько
коміт
d723c6c045

+ 1 - 1
Plugins/org.commontk.slicermodule/CMakeLists.txt

@@ -34,7 +34,7 @@ if(QT4_FOUND)
 endif()
 
 #Compute the plugin dependencies
-ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
+ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
 
 ctkMacroBuildPlugin(
   NAME ${PROJECT_NAME}

+ 2 - 0
Plugins/org.commontk.slicermodule/Resources/Xml/slicerModuleDescription.xsd

@@ -5,12 +5,14 @@
         <xsd:complexType>
             <xsd:sequence>
                 <xsd:element name="category" type="xsd:string"/>
+                <xsd:element name="index" type="xsd:string"/>
                 <xsd:element name="title" type="xsd:string"/>
                 <xsd:element name="description" type="xsd:string"/>
                 <xsd:element name="version" type="xsd:string"/>
                 <xsd:element name="documentation-url" type="xsd:string"/>
                 <xsd:element name="license" type="xsd:string"/>
                 <xsd:element name="contributor" type="xsd:string"/>
+                <xsd:element name="acknowledgements" type="xsd:string"/>
                 <xsd:element name="parameters" type="parameters" maxOccurs="unbounded"/>
             </xsd:sequence>
         </xsd:complexType>

+ 3 - 1
Plugins/org.commontk.slicermodule/ctkSlicerModuleReader.h

@@ -30,12 +30,14 @@
 // CTK includes
 #include "ctkModuleDescriptionReader.h"
 
+#include <org_commontk_slicermodule_Export.h>
+
 /**
  * Reader of Slicer Module XML description
  * Freely inspired from 
  * Slicer/Libs/SlicerExecutionModel/ModuleDescriptionParser/ModuleDescriptionParser.cxx
  */
-class ctkSlicerModuleReader : public ctkModuleDescriptionReader
+class org_commontk_slicermodule_EXPORT ctkSlicerModuleReader : public ctkModuleDescriptionReader
 {
   Q_OBJECT
 public: