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)
include_directories(
- ${CMAKE_SOURCE_DIR}/..
- ${CMAKE_CURRENT_BINARY_DIR}/..
-)
+ ${CMAKE_SOURCE_DIR}/..
+ ${CMAKE_CURRENT_BINARY_DIR}/..
+ )
-if(OPENBABEL2_FOUND AND OPENGL_FOUND AND EIGEN_FOUND)
- set( compoundviewer_SRCS
- kalziumglhelperclasses.cpp
- kalziumglwidget.cpp
- openbabel2wrapper.cpp
- kalziumglpart.cpp
- )
- include_directories( ${OPENBABEL2_INCLUDE_DIR} )
+set( compoundviewer_SRCS
+ kalziumglhelperclasses.cpp
+ kalziumglwidget.cpp
+ openbabel2wrapper.cpp
+ kalziumglpart.cpp
+ )
+include_directories( ${OPENBABEL2_INCLUDE_DIR} )
- kde4_automoc(${compoundviewer_SRCS})
- add_subdirectory(widgets)
+kde4_automoc(${compoundviewer_SRCS})
+add_subdirectory(widgets)
- kde4_add_library(compoundviewer SHARED ${compoundviewer_SRCS})
+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} )
-endif(OPENBABEL2_FOUND AND OPENGL_FOUND AND EIGEN_FOUND)
+target_link_libraries(compoundviewer ${OPENBABEL2_LIBRARIES} ${QT_QTOPENGL_LIBRARY} ${KDE4_KPARTS_LIBS} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} )
set_target_properties(compoundviewer PROPERTIES VERSION 4.0.0 SOVERSION 4 )
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/..
)
-if(OPENBABEL2_FOUND)
- include_directories( ${OPENBABEL2_INCLUDE_DIR} ..)
-endif(OPENBABEL2_FOUND)
+
+include_directories( ${OPENBABEL2_INCLUDE_DIR} ..)
set(kalziumui_PART_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/../kalziumglwidget.cpp