if(NOT ${CHEMKIT_WITH_IO})
  return()
endif()

find_package(Qt4 4.6 COMPONENTS QtCore REQUIRED)
set(QT_DONT_USE_QTGUI TRUE)
include(${QT_USE_FILE})

find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

set(SOURCES
  mdlfileformat.cpp
  mdlplugin.cpp
)

add_chemkit_plugin(mdl SHARED ${SOURCES})
target_link_libraries(mdl chemkit chemkit-io ${QT_LIBRARIES})

if(NOT ${CHEMKIT_WITH_IO})
  return()
endif()

find_package(Qt4 4.6 COMPONENTS QtCore REQUIRED)
set(QT_DONT_USE_QTGUI TRUE)
include(${QT_USE_FILE})

find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

set(SOURCES
  mdlfileformat.cpp
  mdlplugin.cpp
)

add_chemkit_plugin(mdl ${SOURCES})
target_link_libraries(mdl chemkit chemkit-io ${QT_LIBRARIES})

Remove SHARED from add_chemkit_plugin() for mdl plugin
Remove SHARED from add_chemkit_plugin() for mdl plugin

This removes an uneeded SHARED option to the add_chemkit_plugin()
macro in the CMakeLists.txt file for the mdl plugin.
