Skip to content

Commit

Permalink
WIP: basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Mar 18, 2015
1 parent 65112cb commit e6167f0
Show file tree
Hide file tree
Showing 4,344 changed files with 788,775 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
^\.travis\.yml$
src/itki/
src/itks/
src/itkb/
src/*.o
src/*.so
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
^\.travis\.yml$
src/itki/
src/itks/
src/itkb/
src/*.o
src/*.so
17 changes: 17 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Package: RcppITK
Type: Package
Title: ITK in R
Version: 1.0
Date: 2012-02-01
Author: Brian B. Avants, Benjamin M. Kandel, Jeff T. Duda, Philip A. Cook,
Nicholas J. Tustison, Shrinidhi KL
Maintainer: Brian B. Avants <[email protected]>
Description: RcppITK interfaces a state of the art image processing library with R statistical methods. RcppITK wraps ITK C++ core via Rcpp to access these frameworks from within R and support reproducible analyses.
License: GPL (>=2)
LazyLoad: yes
Depends: methods
Imports: Rcpp, tools
LinkingTo: Rcpp
SystemRequirements: cmake, git, clang (recommended)
Additional_repositories: https://github.com/InsightSoftwareConsortium/ITK.git
VignetteBuilder: knitr
5 changes: 5 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exportPattern("^[^.]")
import(Rcpp)
import(tools)
import(methods)
useDynLib(RcppITK)
2 changes: 2 additions & 0 deletions cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
############### still a WIP ###############
rm -f -r src/*.o src/*.so */*~ *~ src/ants src/antb src/itks src/itkb
54 changes: 54 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash
CXX_STD=CXX11
RCPP_INCLUDE_DIR=`${R_DIR}Rscript -e 'Rcpp:::CxxFlags()'`
RCPP_LIB_DIR=`${R_DIR}Rscript -e 'Rcpp:::LdFlags()'`
R_INCLUDE_DIR=`${R_DIR}R CMD config --cppflags`
R_LIB_DIR=`${R_DIR}R CMD config --ldflags`
JTHREADS=2
if [[ `uname` -eq Darwin ]] ; then
CMAKE_BUILD_TYPE=Release
fi
if [[ $TRAVIS -eq true ]] ; then
CMAKE_BUILD_TYPE=Release
JTHREADS=2
fi
cd ./src
itkgit=https://github.com/InsightSoftwareConsortium/ITK.git
itktag=1d6fe27b6e7552f62f94b6c3cb64c4438bce3a86
mkdir itks itkb itki
if [[ ! -s itks/CMakeLists.txt ]] ; then
git clone $itkgit itks
fi
cd itks
if [[ -d .git ]]; then
git checkout master; git pull; git checkout $itktag
fi
cd ../itkb
compflags=" -fPIC "
compflags=" -Wno-c++11-extensions -fPIC -O2 -std=c++11 "
compflags=" -Wno-c++11-long-long -fPIC -O2 "
cmake \
-DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} -Wno-c++11-long-long -fPIC -O2 -DNDEBUG "\
-DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -Wno-c++11-long-long -fPIC -O2 -DNDEBUG "\
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DBUILD_EXAMPLES:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=../itki/ \
-DITK_LEGACY_REMOVE:BOOL=OFF \
-DITK_FUTURE_LEGACY_REMOVE:=BOOL=ON \
-DITKV3_COMPATIBILITY:BOOL=ON \
-DITK_BUILD_DEFAULT_MODULES:BOOL=OFF \
-DKWSYS_USE_MD5:BOOL=ON \
-DITK_WRAPPING:BOOL=OFF \
-DModule_MGHIO:BOOL=OFF \
-DModule_ITKDeprecated:BOOL=OFF \
-DModule_ITKReview:BOOL=ON \
-DModule_ITKVtkGlue:BOOL=OFF \
-D ITKGroup_Core=ON \
-D Module_ITKReview=ON \
-D ITKGroup_Filtering=ON \
-D ITKGroup_IO=ON \
-D ITKGroup_Numerics=ON \
-D ITKGroup_Registration=ON \
-D ITKGroup_Segmentation=ON ../itks/
326 changes: 326 additions & 0 deletions inst/include/Ge4xHdr.h

Large diffs are not rendered by default.

Loading

0 comments on commit e6167f0

Please sign in to comment.