Difference between revisions of "Documentation/Snapshot/Developers/Tutorials/ExtensionWriting"
From Slicer Wiki
m |
|||
| Line 5: | Line 5: | ||
* [[media:AHM-2011-SlicerExtensions-final.ppt|How to create plug-ins for Slicer 4]] | * [[media:AHM-2011-SlicerExtensions-final.ppt|How to create plug-ins for Slicer 4]] | ||
| − | = Additional C/CXX flags == | + | == Additional C/CXX flags == |
<pre> | <pre> | ||
| Line 15: | Line 15: | ||
include(${Slicer_USE_FILE}) | include(${Slicer_USE_FILE}) | ||
| + | </pre> | ||
| + | |||
| + | == License & Readme == | ||
| + | |||
| + | <pre> | ||
| + | set(EXTENSION_LICENSE_FILE ${Slicer_LICENSE_FILE}) | ||
| + | set(EXTENSION_README_FILE ${Slicer_README_FILE}) | ||
</pre> | </pre> | ||
= Editor Extensions = | = Editor Extensions = | ||
*[[Documentation/4.0/EditorExtension|Step-by-step instructions for an Editor Extension]] | *[[Documentation/4.0/EditorExtension|Step-by-step instructions for an Editor Extension]] | ||
Revision as of 21:23, 9 April 2012
Home < Documentation < Snapshot < Developers < Tutorials < ExtensionWritingIntroduction
An extension should be considered as a collection of modules.
Additional C/CXX flags
find_package(Slicer REQUIRED)
# Additional C/CXX flags - Should be defined before including Slicer_USE_FILE
set(ADDITIONAL_C_FLAGS "" CACHE STRING "Additional ${EXTENSION_NAME} C Flags")
set(ADDITIONAL_CXX_FLAGS "" CACHE STRING "Additional ${EXTENSION_NAME} CXX Flags")
include(${Slicer_USE_FILE})
License & Readme
set(EXTENSION_LICENSE_FILE ${Slicer_LICENSE_FILE})
set(EXTENSION_README_FILE ${Slicer_README_FILE})