option(ENABLE_ZOLTAN "Enable Zoltan iterface [ON|OFF]" OFF)
message(STATUS "ENABLE_ZOLTAN: " ${ENABLE_ZOLTAN})

set(CMAKE_MODULE_PATH
  ${CMAKE_MODULE_PATH}
  "${CMAKE_CURRENT_SOURCE_DIR/../cmake/}")

if (ENABLE_ZOLTAN)
  find_package(Zoltan MODULE REQUIRED)
endif()

include_directories(
  ../agi
  )

if (ENABLE_ZOLTAN)
  set(ZOLTAN_SOURCE
    ZoltanCallbacks.cpp
    ZoltanCutVertex.cpp
    )
else()
  set(ZOLTAN_SOURCE
    ZoltanShell.cpp
    )
endif()


add_library(agi_zoltan ${ZOLTAN_SOURCE})

target_link_libraries(agi_zoltan PUBLIC agi)

if (ENABLE_ZOLTAN)
  target_include_directories(agi_zoltan PRIVATE
    ${ZOLTAN_INCLUDE_DIRS}
    ${PARMETIS_INCLUDE_DIRS}
    )
  target_link_libraries(agi_zoltan PUBLIC
    ${ZOLTAN_LIBRARIES}
    ${PARMETIS_LIBRARIES}
    )
endif()

option(ENABLE_ZOLTAN "Enable Zoltan iterface [ON|OFF]" OFF)
message(STATUS "ENABLE_ZOLTAN: " ${ENABLE_ZOLTAN})

set(CMAKE_MODULE_PATH
  ${CMAKE_MODULE_PATH}
  "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/")

if (ENABLE_ZOLTAN)
  find_package(Zoltan MODULE REQUIRED)
endif()

include_directories(
  ../agi
  )

if (ENABLE_ZOLTAN)
  set(ZOLTAN_SOURCE
    ZoltanCallbacks.cpp
    ZoltanCutVertex.cpp
    )
else()
  set(ZOLTAN_SOURCE
    ZoltanShell.cpp
    )
endif()


add_library(agi_zoltan ${ZOLTAN_SOURCE})

target_link_libraries(agi_zoltan PUBLIC agi)

if (ENABLE_ZOLTAN)
  target_include_directories(agi_zoltan PRIVATE
    ${ZOLTAN_INCLUDE_DIRS}
    ${PARMETIS_INCLUDE_DIRS}
    )
  target_link_libraries(agi_zoltan PUBLIC
    ${ZOLTAN_LIBRARIES}
    ${PARMETIS_LIBRARIES}
    )
endif()

Fix a typo that apparently didn't break anything
Fix a typo that apparently didn't break anything
