[med-svn] [beads] 01/01: Some more conversion issues from Qt4 to Qt5
Andreas Tille
tille at debian.org
Thu Oct 19 16:46:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository beads.
commit 3e934bea73b9ac26adef17f3d413b172edb47879
Author: Andreas Tille <tille at debian.org>
Date: Thu Oct 19 18:46:32 2017 +0200
Some more conversion issues from Qt4 to Qt5
---
debian/patches/qt5.patch | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/debian/patches/qt5.patch b/debian/patches/qt5.patch
index 9024e1a..ebb0456 100644
--- a/debian/patches/qt5.patch
+++ b/debian/patches/qt5.patch
@@ -1,17 +1,24 @@
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
-@@ -1,7 +1,7 @@
+@@ -1,12 +1,13 @@
- # this command finds Qt4 libraries and sets all required variables
- # note that it's Qt4, not QT4 or qt4
-FIND_PACKAGE( Qt4 REQUIRED )
+ # this command finds Qt5 libraries and sets all required variables
+ # note that it's Qt5, not QT5 or qt5
-+FIND_PACKAGE( Qt5 REQUIRED )
++FIND_PACKAGE( Qt5 REQUIRED COMPONENTS Core Widgets)
# add some useful macros and variables
-@@ -65,4 +65,4 @@ ELSE(WIN32)
+ # (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains a path to CMake script)
+-INCLUDE( ${QT_USE_FILE} )
++# see https://stackoverflow.com/questions/28252909/cmake-and-qt5-include-only-takes-one-argument
++# INCLUDE( ${QT_USE_FILE} )
+
+ SET( BEADS_CPP
+ beads.cpp
+@@ -65,4 +66,4 @@ ELSE(WIN32)
target_link_libraries (beads ${X11_LIBRARIES} m ${PTHREADS_LIBRARY} ${EXTRA_CIMG_LIBRARY} ${QT_LIBRARIES} )
ENDIF(WIN32)
@@ -27,7 +34,7 @@
-FIND_PACKAGE( Qt4 REQUIRED )
+ # this command finds Qt5 libraries and sets all required variables
+ # note that it's Qt5, not QT5 or qt5
-+FIND_PACKAGE( Qt5 REQUIRED )
++FIND_PACKAGE( Qt5 REQUIRED COMPONENTS Core Widgets)
# add some useful macros and variables
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/beads.git
More information about the debian-med-commit
mailing list