]> Git trees. - libqmvoc.git/commitdiff
Arrg. Now it should really compile. upstream/kde-kaction-cleanup1
authorCarsten Niehaus <cniehaus@gmx.de>
Mon, 27 Nov 2006 15:01:40 +0000 (15:01 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Mon, 27 Nov 2006 15:01:40 +0000 (15:01 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=608426

libscience/CMakeLists.txt
libscience/compoundviewer/CMakeLists.txt
libscience/compoundviewer/widgets/CMakeLists.txt

index eedd9f0d8de77b5b46a21d6c72a91b5a53c86b81..7493561ddcc684547dcac4ed046ec0c9cd67a8d7 100644 (file)
@@ -1,5 +1,8 @@
 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)
index 34d92a41a021e4ad55ecef10053b1d18c537f50d..9cb157a6bdc3e8fe264193b01fe83411a743f9d9 100644 (file)
@@ -1,24 +1,22 @@
 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 )
 
index c7b649040f15e790dccf208c9d93f8f2059eb51a..79756f67a51241c453e78748e8f41f6192c21c80 100644 (file)
@@ -3,9 +3,8 @@ include_directories(
    ${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