project(ExternalTemplate)
set(ExternalTemplate_LIBRARIES ExternalTemplate)
itk_module_impl()

project(ExternalTemplate)
cmake_minimum_required(VERSION 2.8.9)

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

Enable module to be build outside of ITK
Enable module to be build outside of ITK
