diff --git a/ModuleDescriptionParser/CMakeLists.txt b/ModuleDescriptionParser/CMakeLists.txt index b5375a6..017142c 100644 --- a/ModuleDescriptionParser/CMakeLists.txt +++ b/ModuleDescriptionParser/CMakeLists.txt @@ -15,21 +15,6 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) "MinSizeRel" "RelWithDebInfo") endif() -# -------------------------------------------------------------------------- -# Prerequisites -# -------------------------------------------------------------------------- - -# -# ITK -# -set(${PROJECT_NAME}_ITK_COMPONENTS - ITKCommon# For itksys - ITKIOXML # For ITKEXPAT - ITKExpat # For Expat library - ) -find_package(ITK 4.3 COMPONENTS ${${PROJECT_NAME}_ITK_COMPONENTS} REQUIRED) -include(${ITK_USE_FILE}) - # -------------------------------------------------------------------------- # Option(s) # -------------------------------------------------------------------------- @@ -46,6 +31,22 @@ if(ModuleDescriptionParser_USE_SERIALIZER) include_directories(${ParameterSerializer_INCLUDE_DIRS}) endif() +# -------------------------------------------------------------------------- +# Prerequisites +# -------------------------------------------------------------------------- + +# +# ITK +# +set(${PROJECT_NAME}_ITK_COMPONENTS + ITKCommon# For itksys + ITKIOXML # For ITKEXPAT + ITKExpat # For Expat library + ) + +find_package(ITK 4.3 COMPONENTS ${${PROJECT_NAME}_ITK_COMPONENTS} REQUIRED) +include(${ITK_USE_FILE}) + #----------------------------------------------------------------------------- # Testing #-----------------------------------------------------------------------------