Skip to content

Commit a611d45

Browse files
committed
Allow users to enable additional modules.
Allow the user to specify additional, non default, modules that will be built as part of the local SimpleITK build.
1 parent 4f86fcf commit a611d45

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,27 @@
66

77
A [remotes](https://github.com/r-lib/remotes) based installer for SimpleITK in [R](https://www.r-project.org/).
88

9+
Default configuration, single core compilation:
10+
911
```R
1012
remotes::install_github("SimpleITK/SimpleITKRInstaller")
1113
```
12-
or, turn on mutlicore compilation using
14+
15+
Turn on mutlicore compilation, six cores in this example
1316

1417
```R
1518
remotes::install_github("SimpleITK/SimpleITKRInstaller", configure.vars=c("MAKEJ=6"))
1619
```
1720

21+
Use multicore compilation and build additional modules not included in the default build setup such as SimpleElastix (registration) and DCMTK (additional DICOM IO option beyond the default GDCM).
22+
23+
**Note**: We need to use backslashes to escape the spaces in the `ADDITIONAL_SITK_MODULES` otherwise the `remotes::install` does not pass the string correctly to the shell (separates it using the spaces instead of passing as one string).
24+
25+
```R
26+
remotes::install_github("SimpleITK/SimpleITKRInstaller", configure.vars=c("MAKEJ=6", "ADDITIONAL_SITK_MODULES=-DSimpleITK_USE_ELASTIX=ON\\ -DModule_ITKIODCMTK:BOOL=ON"))
27+
```
28+
29+
1830
Requires _cmake_ and _git_ in the path.
1931

2032
Tested on Linux and Mac.

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ mkdir -p SITK
5757
-DBUILD_TESTING=OFF \
5858
-DCMAKE_BUILD_TYPE=MinSizeRel \
5959
-DITK_USE_BUILD_DIR:BOOL=ON \
60+
${ADDITIONAL_SITK_MODULES} \
6061
${SITK_SRC}/SuperBuild/ ||
6162
exit 1
6263

0 commit comments

Comments
 (0)