--- a/CMakeLists.txt +++ a/CMakeLists.txt @@ -57,6 +57,9 @@ function (add_qtestlib_tests test_source_files) endif (DEFINED TEST_SUPPORT_LIBS AND WITH_TESTS) endfunction(add_qtestlib_tests) +find_package(KDE4 REQUIRED) +include (KDE4Defaults) + add_subdirectory (socketsentry-service) add_subdirectory (socketsentry-plasma-engine) add_subdirectory (socketsentry-plasma-widget) --- a/socketsentry-plasma-engine/CMakeLists.txt +++ a/socketsentry-plasma-engine/CMakeLists.txt @@ -15,7 +15,6 @@ project (SocketSentryPlasmaEngine) -find_package (KDE4 4.3 REQUIRED) include (KDE4Defaults) add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) --- a/socketsentry-plasma-widget/CMakeLists.txt +++ a/socketsentry-plasma-widget/CMakeLists.txt @@ -15,8 +15,6 @@ project (SocketSentryPlasmaWidget) -find_package (KDE4 4.3 REQUIRED) -include (KDE4Defaults) find_package (Qt4 4.5 REQUIRED) set (QT_USE_QTNETWORK 1) --- a/socketsentry-plasma-widget/img/CMakeLists.txt +++ a/socketsentry-plasma-widget/img/CMakeLists.txt @@ -15,7 +15,6 @@ project (SocketSentryPlasmaIcons) -find_package(KDE4 REQUIRED) add_definitions (${KDE4_DEFINITIONS}) # Install icons