forked from Shirakumo/libmixed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindout123.cmake
More file actions
58 lines (52 loc) · 1.05 KB
/
Findout123.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( OUT123_INCLUDE_DIR
NAMES
out123.h
HINTS
"${OUT123_LOCATION}/include"
"$ENV{OUT123_LOCATION}/include"
PATHS
"$ENV{PROGRAMFILES}/out123/include"
"$ENV{PROGRAMFILES}/mpg123/include"
/sw
/usr
/usr/local
/opt
/opt/local
DOC
"The directory where out123/out123.h resides"
)
find_library( OUT123_out123_LIBRARY
NAMES
libout123
out123
HINTS
"${OUT123_LOCATION}/lib"
"${OUT123_LOCATION}/lib/x64"
"$ENV{OUT123_LOCATION}/lib"
PATHS
/sw
/usr
/usr/local
/opt
/opt/local
DOC
"The out123 library"
)
set(OUT123_FOUND "NO")
if(OUT123_INCLUDE_DIR AND OUT123_out123_LIBRARY)
set(OUT123_LIBRARIES "${OUT123_out123_LIBRARY}")
set(OUT123_FOUND "YES")
set(OUT123_LIBRARY "${OUT123_LIBRARIES}")
set(OUT123_INCLUDE_PATH "${OUT123_INCLUDE_DIR}")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OUT123
REQUIRED_VARS
OUT123_INCLUDE_DIR
OUT123_LIBRARIES
VERSION_VAR
OUT123_VERSION)
mark_as_advanced(
OUT123_INCLUDE_DIR
OUT123_LIBRARIES
OUT123_out123_LIBRARY)