blob: 7f84466b385c5349e9082100b9b9f5d35a6d95ef (
plain)
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
59
60
61
62
63
|
# This file is part of Mixxx, Digital DJ'ing software.
# Copyright (C) 2001-2020 Mixxx Development Team
# Distributed under the GNU General Public Licence (GPL) version 2 or any later
# later version. See the LICENSE file for details.
#[=======================================================================[.rst:
FindG72X
--------
Finds the G72X library.
Imported Targets
^^^^^^^^^^^^^^^^
This module provides the following imported targets, if found:
``G72X::G72X``
The G72X library
Result Variables
^^^^^^^^^^^^^^^^
This will define the following variables:
``G72X_FOUND``
True if the system has the G72X library.
``G72X_LIBRARIES``
Libraries needed to link to G72X.
Cache Variables
^^^^^^^^^^^^^^^
The following cache variables may also be set:
``G72X_LIBRARY``
The path to the G72X library.
#]=======================================================================]
find_library(G72X_LIBRARY
NAMES g72x
DOC "G72X library"
)
mark_as_advanced(G72X_LIBRARY)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
G72X
DEFAULT_MSG
G72X_LIBRARY
)
if(G72X_FOUND)
set(G72X_LIBRARIES "${G72X_LIBRARY}")
if(NOT TARGET G72X::G72X)
add_library(G72X::G72X UNKNOWN IMPORTED)
set_target_properties(G72X::G72X
PROPERTIES
IMPORTED_LOCATION "${G72X_LIBRARY}"
)
endif()
endif()
|