From: Carsten Niehaus Date: Sat, 30 Jun 2007 20:26:57 +0000 (+0000) Subject: Only add and compile the directory if libplasma is found... X-Git-Tag: v3.92.0~55 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=eca23c2f9520889fa94d207bc7421ddf758fe5e4;p=libqmvoc.git Only add and compile the directory if libplasma is found... svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=681923 --- 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)