Skip to content

Commit

Permalink
ENH: Allow the module to be built externally.
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Sep 30, 2016
1 parent 23d565d commit 7b31898
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
cmake_minimum_required(VERSION 2.8.9)
project(Strain)
itk_module_impl()

if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
itk_module_impl()
endif()

0 comments on commit 7b31898

Please sign in to comment.