diff --git a/CMakeLists.txt b/CMakeLists.txt index 91d22fd..b0d6806 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,15 +25,12 @@ set(SNORE_VERSION_MINOR 5) set(SNORE_VERSION_PATCH 0) set(SNORE_VERSION_SUFFIX "rc1") -if(WITH_KDE) - find_package(KDE4) -endif() - set(SNORE_SUFFIX "") set(SNORE_CamelCase_SUFFIX "") if(WITH_QT4) find_package(Qt4 REQUIRED) + include_directories( ${QT_INCLUDES} ) else() if(WITH_KDE) find_package(ECM 0.0.9 NO_MODULE) @@ -47,7 +44,7 @@ else() set(SNORE_SUFFIX "-qt5") set(SNORE_CamelCase_SUFFIX "Qt5") endif() -include_directories( ${QT_INCLUDES} ) + if(NOT ECM_FOUND) include(NoKDE) else()