Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- ENH: improved CMakeLists.txt to poll ITK REVIEW header files + useful ... #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
include_directories(Code)
add_subdirectory(Code)

#-----------------------------------------------------------------------------
#We need ITK REVIEW headers
if(NOT ITK_SOURCE_DIR)
message(SEND_ERROR "ITK_SOURCE_DIR not set! Please rerun cmake"
" or ccmake with option -D=<AbsolutePathToYourITKSourceDir>")
endif(NOT ITK_SOURCE_DIR)
set(ITK_REVIEW_INCLUDE_DIR "${ITK_SOURCE_DIR}/Modules/Nonunit/Review/include")
if(NOT EXISTS ${ITK_REVIEW_INCLUDE_DIR})
message(SEND_ERROR "Directory ${ITK_REVIEW_INCLUDE_DIR} does not exist! Can't fetch ITK REVIEW header files.")
endif(NOT EXISTS ${ITK_REVIEW_INCLUDE_DIR})
include_directories("${ITK_SOURCE_DIR}/Modules/Nonunit/Review/include")

#-----------------------------------------------------------------------------
#Build the matlab bindings if we have some
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ http://www.insight-journal.org/browse/publication/644

The intent of this work is to upgrade to code base to be compatible with ITKv4.

Installation
============
$ ccmake . -DITK_DIR=<AbsolutePathToYourITKBuildDir> -DITK_SOURCE_DIR=<AbsolutePathToYourITKSourceDir>
$ make