message: BUG: Set RTK_BUILD_SHARED_LIBS when building inside ITK
  Looking at line l95 of ITK/CMake/ITKSetStandardCompilerFlags.cmake,
  BUILD_SHARED_LIBS can be set to OFF by ITK. In this case we should relay
  on the ITK_LIBRARY_BUILD_TYPE value.
diff: @@ -87,9 +87,19 @@ if(RTK_USE_CUDA)
  endif()
  endif()
  +# --------------------------------------------------------
  +# Find ITK (required)
  +if(NOT ITK_SOURCE_DIR)
  + find_package(ITK 4.12.0 REQUIRED)
  +endif()
  +
  # --------------------------------------------------------
  # Shared libraries option
  +if("${ITK_LIBRARY_BUILD_TYPE}" STREQUAL "SHARED")
  + set(RTK_BUILD_SHARED_LIBS ON)
  +else()
  set(RTK_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
  +endif()
  # ----------------------------------------------------------------------------
  # Set RTK_DATA_ROOT
  @@ -144,12 +154,6 @@ set(LPSOLVE_INCLUDE_DIRS
  list(APPEND RTK_INCLUDE_DIRS
  "${LPSOLVE_INCLUDE_DIRS}")
  -# --------------------------------------------------------
  -# Find ITK (required)
  -if(NOT ITK_SOURCE_DIR)
  - find_package(ITK 4.12.0 REQUIRED)
  -endif()
  -
  # --------------------------------------------------------
  # Setup KWStyle from ITK
  if(ITK_USE_KWSTYLE)
  