find_package(Qt4 4.6 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
set(QT_USE_QTGUI TRUE)
include(${QT_USE_FILE})

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(../../../include)

set(SOURCES
  builder.cpp
  buildertool.cpp
  builderwindow.cpp
  buildtool.cpp
  displaysettingsdock.cpp
  energyminimizationdock.cpp
  energyminimizer.cpp
  manipulatetool.cpp
  moleculelistdock.cpp
  moleculepropertiesdialog.cpp
  navigatetool.cpp
  toolsettingsdock.cpp
)

set(MOC_HEADERS
  builderwindow.h
  buildtool.h
  displaysettingsdock.h
  energyminimizationdock.h
  energyminimizer.h
  moleculelistdock.h
  moleculepropertiesdialog.h
  toolsettingsdock.h
)

set(UI_FORMS
  builderwindow.ui
  displaysettingsdock.ui
  energyminimizationdock.ui
  moleculelistdock.ui
  moleculepropertiesdialog.ui
  toolsettingsdock.ui
)

qt4_wrap_ui(UI_SOURCES ${UI_FORMS})
qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_chemkit_executable(builder ${SOURCES} ${MOC_SOURCES} ${UI_SOURCES})
target_link_libraries(builder chemkit chemkit-graphics chemkit-widgets ${QT_LIBRARIES})

find_package(Qt4 4.6 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
set(QT_USE_QTGUI TRUE)
include(${QT_USE_FILE})

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

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(../../../include)

set(SOURCES
  builder.cpp
  buildertool.cpp
  builderwindow.cpp
  buildtool.cpp
  displaysettingsdock.cpp
  energyminimizationdock.cpp
  energyminimizer.cpp
  manipulatetool.cpp
  moleculelistdock.cpp
  moleculepropertiesdialog.cpp
  navigatetool.cpp
  toolsettingsdock.cpp
)

set(MOC_HEADERS
  builderwindow.h
  buildtool.h
  displaysettingsdock.h
  energyminimizationdock.h
  energyminimizer.h
  moleculelistdock.h
  moleculepropertiesdialog.h
  toolsettingsdock.h
)

set(UI_FORMS
  builderwindow.ui
  displaysettingsdock.ui
  energyminimizationdock.ui
  moleculelistdock.ui
  moleculepropertiesdialog.ui
  toolsettingsdock.ui
)

qt4_wrap_ui(UI_SOURCES ${UI_FORMS})
qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_chemkit_executable(builder ${SOURCES} ${MOC_SOURCES} ${UI_SOURCES})
target_link_libraries(builder chemkit chemkit-graphics chemkit-widgets ${QT_LIBRARIES})

Add find_package() for Boost to chemkit-builder
Add find_package() for Boost to chemkit-builder

This adds a call to find_package() for Boost to the
CMakeLists.txt file for the chemkit-builder application
which fixes a compilation error on Windows.
