add_subdirectory(data)

if(OPENBABEL2_FOUND AND OPENGL_FOUND AND EIGEN_FOUND)
add_subdirectory(compoundviewer)
endif(OPENBABEL2_FOUND AND OPENGL_FOUND AND EIGEN_FOUND)

#comment these lines out if you don't want to build the test
set(parsertest_SRCS xmlreadingtest.cpp)
kde4_add_executable(parsertest ${parsertest_SRCS})
target_link_libraries(parsertest science)
#end tests

set(science_LIB_SRCS
   element.cpp
   spectrum.cpp
   isotope.cpp
   spectrumparser.cpp
   elementparser.cpp
   isotopeparser.cpp
   tempunit.cpp
   chemicaldataobject.cpp
   moleculeparser.cpp
   parser.cpp
)

kde4_automoc(${science_LIB_SRCS})

kde4_add_library(science SHARED ${science_LIB_SRCS})

target_link_libraries(science  ${KDE4_KDEUI_LIBS} ${QT_QTXML_LIBRARY} )

set_target_properties(science PROPERTIES VERSION 4.0.0 SOVERSION 4 )
install(TARGETS science  DESTINATION ${LIB_INSTALL_DIR} )

