File tree Expand file tree Collapse file tree 5 files changed +67
-163
lines changed Expand file tree Collapse file tree 5 files changed +67
-163
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ if(WITH_IMAGE)
58
58
endif ()
59
59
60
60
if (WITH_MAD)
61
- find_package (LibMad )
62
- if (LibMad_FOUND )
61
+ find_package (mad )
62
+ if (mad_FOUND )
63
63
set (HAVE_LIBMAD TRUE )
64
64
endif ()
65
65
endif ()
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ find_file(
56
56
57
57
find_library (
58
58
FluidSynth_LIBRARY
59
- NAMES fluidsynth libfluidsynth
59
+ NAMES fluidsynth libfluidsynth fluidsynth-3 libfluidsynth-3
60
60
HINTS "${PC_FLUIDSYNTH_LIBDIR} "
61
61
)
62
62
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #[=======================================================================[.rst:
2
+ Findmad
3
+ -------
4
+
5
+ Finds the mad library.
6
+
7
+ Imported Targets
8
+ ^^^^^^^^^^^^^^^^
9
+
10
+ This module provides the following imported targets, if found:
11
+
12
+ ``mad::mad``
13
+ The mad library
14
+
15
+ Cache Variables
16
+ ^^^^^^^^^^^^^^^
17
+
18
+ The following cache variables may also be set:
19
+
20
+ ``mad_INCLUDE_DIR``
21
+ The directory containing ``mad.h``.
22
+ ``mad_LIBRARY``
23
+ The path to the mad library.
24
+
25
+ #]=======================================================================]
26
+
27
+ find_package (PkgConfig QUIET )
28
+ pkg_check_modules(PC_mad QUIET mad)
29
+
30
+ find_path (
31
+ mad_INCLUDE_DIR
32
+ NAMES mad.h
33
+ HINTS "${PC_mad_INCLUDEDIR} "
34
+ )
35
+
36
+ find_library (
37
+ mad_LIBRARY
38
+ NAMES mad mad-0
39
+ HINTS "${PC_mad_LIBDIR} "
40
+ )
41
+
42
+ include (FindPackageHandleStandardArgs)
43
+ find_package_handle_standard_args(
44
+ mad
45
+ REQUIRED_VARS
46
+ mad_LIBRARY
47
+ mad_INCLUDE_DIR
48
+ )
49
+
50
+ if (mad_FOUND AND NOT TARGET mad::mad)
51
+ add_library (mad::mad UNKNOWN IMPORTED )
52
+ set_target_properties (
53
+ mad::mad
54
+ PROPERTIES
55
+ IMPORTED_LOCATION "${mad_LIBRARY} "
56
+ INTERFACE_INCLUDE_DIRECTORIES "${mad_INCLUDE_DIR} "
57
+ )
58
+ endif ()
59
+
60
+ mark_as_advanced (
61
+ mad_INCLUDE_DIR
62
+ mad_LIBRARY
63
+ )
Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ function(AddGameExecutable TARGET SOURCES)
567
567
endif ()
568
568
569
569
if (HAVE_LIBMAD)
570
- target_link_libraries (${TARGET} PRIVATE LibMad::libmad )
570
+ target_link_libraries (${TARGET} PRIVATE mad::mad )
571
571
endif ()
572
572
573
573
if (HAVE_LIBFLUIDSYNTH)
You can’t perform that action at this time.
0 commit comments