include_directories(
  ${CMAKE_SOURCE_DIR}/..
  ${CMAKE_CURRENT_BINARY_DIR}/..
  ${CMAKE_SOURCE_DIR}/kalzium/libavogadro-kalzium/include/
  )

set( compoundviewer_SRCS
  openbabel2wrapper.cpp
  kalziumglpart.cpp
  )
include_directories( ${OPENBABEL2_INCLUDE_DIR} ${EIGEN_INCLUDE_DIR} )

add_subdirectory(widgets)

kde4_add_library(compoundviewer SHARED ${compoundviewer_SRCS})

target_link_libraries(compoundviewer ${OPENBABEL2_LIBRARIES}
${QT_QTOPENGL_LIBRARY} ${KDE4_KPARTS_LIBS} ${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY} avogadro-kalzium)

set_target_properties(compoundviewer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )

install(TARGETS compoundviewer  ${INSTALL_TARGETS_DEFAULT_ARGS})

