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

set(HEADERS
  proteindatabank.h
  pubchem.h
  web.h
)

set(SOURCES
  downloadthread.cpp
  proteindatabank.cpp
  pubchem.cpp
  pubchemquery.cpp
  pubchemquerythread.cpp
  web.cpp
)

set(MOC_HEADERS
  downloadthread.h
  pubchemquerythread.h
)

qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_definitions(
  -DCHEMKIT_WEB_LIBRARY
)

include_directories(../../include)

add_library(chemkit-web SHARED ${SOURCES} ${MOC_SOURCES})
target_link_libraries(chemkit-web chemkit ${QT_LIBRARIES})
install(TARGETS chemkit-web DESTINATION lib)

# install header files
install(FILES ${HEADERS} DESTINATION include/chemkit/)

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

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

set(HEADERS
  proteindatabank.h
  pubchem.h
  web.h
)

set(SOURCES
  downloadthread.cpp
  proteindatabank.cpp
  pubchem.cpp
  pubchemquery.cpp
  pubchemquerythread.cpp
  web.cpp
)

set(MOC_HEADERS
  downloadthread.h
  pubchemquerythread.h
)

qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_definitions(
  -DCHEMKIT_WEB_LIBRARY
)

include_directories(../../include)

add_library(chemkit-web SHARED ${SOURCES} ${MOC_SOURCES})
target_link_libraries(chemkit-web chemkit ${QT_LIBRARIES})
install(TARGETS chemkit-web DESTINATION lib)

# install header files
install(FILES ${HEADERS} DESTINATION include/chemkit/)

Add find_package() for Boost to libchemkit-web
Add find_package() for Boost to libchemkit-web

This adds a call to find_package() for Boost to the
CMakeLists.txt file for the libchemkit-web library
which fixes a compilation error on Windows.
