[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [pairs/frameworks] /: first commit for KDE framework 5 porting
From:       Marco Calignano <marco.calignano () gmail ! com>
Date:       2014-07-01 15:27:43
Message-ID: E1X1zyB-00070L-4o () scm ! kde ! org
[Download RAW message or body]

Git commit 62d2280fb67dc3ebffd7e4b2b93974ffd8b4edf4 by Marco Calignano.
Committed on 01/07/2014 at 15:27.
Pushed by calignano into branch 'frameworks'.

first commit for KDE framework 5 porting

M  +14   -5    CMakeLists.txt

http://commits.kde.org/pairs/62d2280fb67dc3ebffd7e4b2b93974ffd8b4edf4

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6f6c7e..f1881a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,7 @@
 #  Copyright (C) <2010>       <Albert Astals Cid>   <aacid@kde.org>
 #  Copyright (C) <2010>       <Aleix Pol>           <aleixpol@kde.org>
 #  Copyright (C) <2012>       <Marco Calignano>     <marco.calignano@gmail.com>
+#  Copyright (C) <2014>       <Marco Calignano>     <marco.calignano@gmail.com>
 #
 #  This program is free software; you can redistribute it and/or
 #  modify it under the terms of the GNU General Public License as
@@ -19,15 +20,21 @@
 #  
 #  You should have received a copy of the GNU General Public License
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
+cmake_minimum_required(VERSION 2.8.12)
 
 project(pairs)
 
-find_package(KDE4 REQUIRED)
-include (KDE4Defaults)
 
-include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
-add_definitions( ${KDE4_DEFINITIONS} )
+find_package(ECM 0.0.11 REQUIRED NO_MODULE)
+set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
+
+include(KDEInstallDirs)
+include(KDECMakeSettings)
+include(KDECompilerSettings)
+include(FeatureSummary)
+
+find_package(Qt5 REQUIRED COMPONENTS Widgets)
+find_package(KF5 REQUIRED COMPONENTS CoreAddons Solid)
 
 add_subdirectory( game )
 add_subdirectory( pairseditor )
@@ -37,5 +44,7 @@ add_subdirectory( gameicons )
 add_subdirectory( themes )
 add_subdirectory( doc )
 
+feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
+
 install(FILES pairs.appdata.xml DESTINATION ${SHARE_INSTALL_PREFIX}/appdata/)
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic