forked from Shirakumo/libmixed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindmpg123.cmake
More file actions
58 lines (52 loc) · 1.05 KB
/
Findmpg123.cmake
File metadata and controls
58 lines (52 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
find_path( MPG123_INCLUDE_DIR
NAMES
mpg123.h
HINTS
"${MPG123_LOCATION}/include"
"$ENV{MPG123_LOCATION}/include"
PATHS
"$ENV{PROGRAMFILES}/mpg123/include"
"$ENV{PROGRAMFILES}/mpg123/include"
/sw
/usr
/usr/local
/opt
/opt/local
DOC
"The directory where mpg123/mpg123.h resides"
)
find_library( MPG123_mpg123_LIBRARY
NAMES
libmpg123
mpg123
HINTS
"${MPG123_LOCATION}/lib"
"${MPG123_LOCATION}/lib/x64"
"$ENV{MPG123_LOCATION}/lib"
PATHS
/sw
/usr
/usr/local
/opt
/opt/local
DOC
"The mpg123 library"
)
set(MPG123_FOUND "NO")
if(MPG123_INCLUDE_DIR AND MPG123_mpg123_LIBRARY)
set(MPG123_LIBRARIES "${MPG123_mpg123_LIBRARY}")
set(MPG123_FOUND "YES")
set(MPG123_LIBRARY "${MPG123_LIBRARIES}")
set(MPG123_INCLUDE_PATH "${MPG123_INCLUDE_DIR}")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MPG123
REQUIRED_VARS
MPG123_INCLUDE_DIR
MPG123_LIBRARIES
VERSION_VAR
MPG123_VERSION)
mark_as_advanced(
MPG123_INCLUDE_DIR
MPG123_LIBRARIES
MPG123_mpg123_LIBRARY)