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

set(SOURCES
  pdbfileformat.cpp
  pdbplugin.cpp
)

set(MOC_HEADERS
  pdbplugin.h
)

qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_chemkit_plugin(pdb ${SOURCES} ${MOC_SOURCES})
target_link_libraries(pdb chemkit ${QT_LIBRARIES})

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
  pdbfileformat.cpp
  pdbplugin.cpp
)

set(MOC_HEADERS
  pdbplugin.h
)

qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_chemkit_plugin(pdb ${SOURCES} ${MOC_SOURCES})
target_link_libraries(pdb chemkit ${QT_LIBRARIES})

Add find_package() for boost to pdb plugin
Add find_package() for boost to pdb plugin

This adds a call to find_package() for the boost
library to the CMakeLists.txt for the pdb plugin.
This fixes a compilation error in which the
boost/foreach.hpp header file was not found.
