Skip to content

Commit 7b8d82d

Browse files
committed
Preparations for release 1.7.4
Building with Qt6 by default. For Qt5 compatibility, a new option USE_QT5 must be set. Upgraded CMake requirement to 3.16
1 parent ed2c35e commit 7b8d82d

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

CMakeLists.txt

+24-25
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
# Drumstick MIDI File Player Multiplatform Program
2-
# Copyright (C) 2006-2023 Pedro Lopez-Cabanillas <[email protected]>
3-
#
4-
# This program is free software; you can redistribute it and/or modify
5-
# it under the terms of the GNU General Public License as published by
6-
# the Free Software Foundation; either version 3 of the License, or
7-
# (at your option) any later version.
8-
#
9-
# This program is distributed in the hope that it will be useful,
10-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
# GNU General Public License for more details.
13-
#
14-
# You should have received a copy of the GNU General Public License
15-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16-
17-
cmake_minimum_required(VERSION 3.14)
1+
#[==========================================================================[
2+
Drumstick MIDI File Player Multiplatform Program
3+
Copyright (C) 2006-2023 Pedro Lopez-Cabanillas <[email protected]>
4+
5+
This program is free software; you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation; either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
#]==========================================================================]
18+
19+
cmake_minimum_required(VERSION 3.16)
1820

1921
project ( dmidiplayer
2022
VERSION 1.7.4
@@ -35,17 +37,14 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
3537

3638
option(BUILD_DOCS "Process Markdown sources of man pages and help files" ON)
3739
option(EMBED_TRANSLATIONS "Embed translations instead of installing" OFF)
38-
option(USE_QT "Choose which Qt major version (5 or 6) to prefer. By default uses whatever is found")
40+
option(USE_QT5 "Choose to build with Qt5 instead of Qt6" OFF)
3941

4042
include(SCMRevision)
4143

42-
if (USE_QT)
43-
if (NOT (USE_QT EQUAL 5 OR USE_QT EQUAL 6))
44-
message(FATAL_ERROR "Wrong Qt major version. Only 5 and 6 are valid options")
45-
endif()
46-
find_package( QT NAMES Qt${USE_QT} )
44+
if (USE_QT5)
45+
find_package( QT NAMES Qt5 REQUIRED)
4746
else()
48-
find_package( QT NAMES Qt5 Qt6 )
47+
find_package( QT NAMES Qt6 REQUIRED)
4948
endif()
5049

5150
if(QT_VERSION VERSION_LESS 6.0.0)
@@ -54,7 +53,7 @@ else()
5453
find_package ( Qt6 6.2 COMPONENTS Gui Widgets PrintSupport LinguistTools Core5Compat REQUIRED )
5554
endif()
5655

57-
find_package ( Drumstick 2.8 COMPONENTS File RT Widgets REQUIRED )
56+
find_package ( Drumstick 2.9 COMPONENTS File RT Widgets REQUIRED )
5857
find_package ( uchardet 0.0.8 COMPONENTS libuchardet REQUIRED )
5958

6059
SET(SOURCES

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2023-12-06
2+
* Preparations for release 1.7.4
3+
Building with Qt6 by default.
4+
For Qt5 compatibility, a new option USE_QT5 must be set.
5+
Upgraded CMake requirement to 3.16
6+
17
2023-11-01
28
* using std::call_once for settings read
39

0 commit comments

Comments
 (0)