]> Git trees. - libqmvoc.git/commitdiff
Only add and compile the directory if libplasma is found...
authorCarsten Niehaus <cniehaus@gmx.de>
Sat, 30 Jun 2007 20:26:57 +0000 (20:26 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sat, 30 Jun 2007 20:26:57 +0000 (20:26 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=681923

plasma/CMakeLists.txt

index 157804a721fd217b5adfd71c07af6ab0edcb874a..4b8f19d61f7477cd31555f8d4e4d296a4f5f4fea 100644 (file)
@@ -1,4 +1,7 @@
-find_package(Plasma REQUIRED)
-include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
-add_subdirectory(engines)
-add_subdirectory(applets)
+find_package(Plasma)
+
+if(PLASMA_FOUND)
+       include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
+       add_subdirectory(engines)
+       add_subdirectory(applets)
+endif(PLASMA_FOUND)