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)
18
20
19
21
project ( dmidiplayer
20
22
VERSION 1.7.4
@@ -35,17 +37,14 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
35
37
36
38
option (BUILD_DOCS "Process Markdown sources of man pages and help files" ON )
37
39
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 )
39
41
40
42
include (SCMRevision)
41
43
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)
47
46
else ()
48
- find_package ( QT NAMES Qt5 Qt6 )
47
+ find_package ( QT NAMES Qt6 REQUIRED )
49
48
endif ()
50
49
51
50
if (QT_VERSION VERSION_LESS 6.0.0)
54
53
find_package ( Qt6 6.2 COMPONENTS Gui Widgets PrintSupport LinguistTools Core5Compat REQUIRED )
55
54
endif ()
56
55
57
- find_package ( Drumstick 2.8 COMPONENTS File RT Widgets REQUIRED )
56
+ find_package ( Drumstick 2.9 COMPONENTS File RT Widgets REQUIRED )
58
57
find_package ( uchardet 0.0.8 COMPONENTS libuchardet REQUIRED )
59
58
60
59
SET (SOURCES
0 commit comments