This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
README
77 lines (51 loc) · 2.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
This repository has been archived.
The ITK module template is now located in theInsight Software Consortium organization.
https://github.com/InsightSoftwareConsortium/ITKModuleTemplate
General
=======
This is a module for [ITK](http://itk.org): The Insight Toolkit for Segmentation and
Registration. It is designed to work with the ITKv4
modular system and to be places it ITK/Modules/External or uses as a
Remote module.
This modular is empty it is just a template to be used as a starting
point for a module with acutal content.
Getting Started
===============
The official ITKv4 Wiki documentation on adding an external module is here:
http://www.itk.org/Wiki/ITK_Release_4/Modularization/Add_an_external_module_(external_module)
http://www.itk.org/Wiki/ITK/Policy_and_Procedures_for_Adding_Remote_Modules
External Module
---------------
The following is a breif list of instructions to get a external module
started in a repository:
mkdir ITK/Modules/External/itkMyModule
cd ITK/Modules/External/itkMyModule
git init
git fetch [email protected]:blowekamp/itkExternalTemplate.git
git merge FETCH_HEAD
Remote Module
-------------
After a module has been created as a git repository it can be included
as a remote module, which enables automatic fetching. Add a file in
"ITK/Modules/Remote" called "YourModule.remote.cmake", for this module
it would be "ExternalExample.remote.cmake" with the followlowing contents:
itk_fetch_module(ExternalTemplate
"A template for a module."
GIT_REPOSITORY https://github.com/blowekamp/itkExternalTemplate.git
GIT_TAG master
)
Editing
-------
The CMakeLists.txt and itk-modules need to be modified with the name
of the module, something along the following:
sed 's/ExternalTemplate/MyModule/g' CMakeLists.txt itk-module.cmake
There is the inplace option to sed, but it's not portable, so do this
change by hand or look up the option in sed.
Then hack away at you code in include, src, and tests.
License
=======
This software is distributed under the Apache License. Please see
LICENSE for details.
Author
======
Bradley Lowekamp