From eca23c2f9520889fa94d207bc7421ddf758fe5e4 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Sat, 30 Jun 2007 20:26:57 +0000 Subject: [PATCH] Only add and compile the directory if libplasma is found... svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=681923 --- plasma/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plasma/CMakeLists.txt b/plasma/CMakeLists.txt index 157804a..4b8f19d 100644 --- a/plasma/CMakeLists.txt +++ b/plasma/CMakeLists.txt @@ -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) -- 2.47.3