Slicer: 2145-support-for-installing-extension-from-file c4a16fba

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-04-27 18:35:11 2145-support-for-installing-extension-from-file 63e9b477
Affected Issues 0003008: Executable CLI modules fail to start
Changeset

BUG: Ensure ITK IOFactory are registered for EXECUTABLE_ONLY cli modules

The library wrapper are now used when compiling either the [executable] or
[executable + shared library] cli module. It allows to call the
"itk::itkFactoryRegistration();" in both cases.

Associated SlicerExecutionModel commit is:

// ---------------------------------------------------
ENH: Use library wrapper in the "EXECUTABLE_ONLY" case
This will allow custom wrapper to execute some code before the main
entry point in both the [exec + shared lib] and [exec only] cases.

The macro "MODULE_STATIC" has also been introduced and can be tested
within the wrapper to discriminate both cases.

Change the component associated with Archive target from RuntimeLibraries
to Development. That way, static library won't be packaged.
// ---------------------------------------------------

See http://na-mic.org/Bug/view.php?id=3008
Fixes 0003008

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21950 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/CLI/SEMCommandLineLibraryWrapper.cxx.in Diff File
mod - SuperBuild/External_SlicerExecutionModel.cmake Diff File