[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [klimbgrades] /: Simplify CMake file
From: Aleix Pol <null () kde ! org>
Date: 2018-09-28 16:40:47
Message-ID: E1g5vot-0005TV-KL () code ! kde ! org
[Download RAW message or body]
Git commit 87880fb654577e131074bc578fb157fabde6362a by Aleix Pol.
Committed on 28/09/2018 at 16:39.
Pushed by apol into branch 'master'.
Simplify CMake file
Summary:
This project could be used as an example of what a simple Kirigami application should \
look like. Keep it to a minimum
Reviewers: mart
Reviewed By: mart
Differential Revision: https://phabricator.kde.org/D15227
M +4 -33 CMakeLists.txt
https://commits.kde.org/klimbgrades/87880fb654577e131074bc578fb157fabde6362a
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e5480f..2209c6d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,54 +1,25 @@
project(klimbgrades)
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.0)
set(KF5_MIN_VERSION "5.18.0")
set(QT_MIN_VERSION "5.5.0")
-################# Disallow in-source build #################
+find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
-if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
- message(FATAL_ERROR "klimbgrades requires an out of source build. Please create a \
separate build directory and run 'cmake path_to_kirigami [options]' \
there.")
-endif()
-
-
-
-# Make CPack available to easy generate binary packages
-include(CPack)
-include(FeatureSummary)
-
-################# 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(ECMSetupVersion)
-include(ECMGenerateHeaders)
+include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(ECMPoQmTools)
include(KDECompilerSettings NO_POLICY_SCOPE)
-set(KF5_VERSION "5.22.0")
-
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui \
Svg QuickControls2)
find_package(KF5Config ${KF5_DEP_VERSION} "5.22.0")
find_package(KF5Kirigami2 ${KF5_DEP_VERSION} "5.22.0")
-################# Enable C++11 features for clang and gcc #################
-
-if(UNIX)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x")
-endif()
-
-################# now find all used packages #################
-
-set (QT_MIN_VERSION "5.5.0")
-
-find_package(PkgConfig)
-#########################################################################
+set (CMAKE_CXX_STANDARD 11)
add_subdirectory(src)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic