From 85dc437da27417cce05b5a9f97505b43cfdf4dee Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 23 Aug 2017 18:39:44 -0600 Subject: The grand cmake cleanup We had a ton of duplication in our cmake code because we had no common toplevel settings. This is now cleaned up so we can sanely change settings and so we know what we have set. --- components/CMakeLists.txt | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'components/CMakeLists.txt') diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 8b988fab..7b06929f 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -1,26 +1,8 @@ project(kube-components) -cmake_minimum_required(VERSION 2.8.12) - -include(CPack) -include(FeatureSummary) -find_package(PkgConfig) - -################# set KDE specific information ################# - -find_package(ECM 0.0.8 REQUIRED NO_MODULE) - -# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) - -include(KDEInstallDirs) -include(KDECMakeSettings) -include(KDECompilerSettings) - find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui Widgets) find_package(KF5 REQUIRED COMPONENTS Package) - macro(install_component name) install(DIRECTORY ${name}/contents/ui/ DESTINATION ${QML_INSTALL_DIR}/org/kube/components/${name}) install(FILES ${name}/qmldir DESTINATION ${QML_INSTALL_DIR}/org/kube/components/${name}) -- cgit v1.2.3