Difference between revisions of "Documentation/Snapshot/Developers/Tutorials/ExtensionWriting"
From Slicer Wiki
m (Created page with '= Introduction = An extension should be considered as a collection of modules. * How to create plug-ins for Slicer 4 = Additional…') |
|||
Line 7: | Line 7: | ||
= Additional C/CXX flags == | = Additional C/CXX flags == | ||
− | < | + | <pre> |
find_package(Slicer REQUIRED) | find_package(Slicer REQUIRED) | ||
Line 15: | Line 15: | ||
include(${Slicer_USE_FILE}) | include(${Slicer_USE_FILE}) | ||
− | </ | + | </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:20, 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})