File: FindMySofa.cmake

package info (click to toggle)
libspatialaudio 0.3.0%2Bgit20180730%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 464 kB
  • sloc: cpp: 2,293; ansic: 1,247; makefile: 5
file content (43 lines) | stat: -rw-r--r-- 1,114 bytes parent folder | download | duplicates (2)
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
# Try to find libMySofa headers and library.
#
# Usage of this module as follows:
#
#     find_package(MySofa)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
#  MYSOFA_ROOT_DIR           Set this variable to the root installation of
#                            libMySofa if the module has problems finding the
#                            proper installation path.
#
# Variables defined by this module:
#
#  MYSOFA_FOUND               System has libMySofa library/headers.
#  MYSOFA_LIBRARIES           The libMySofa library.
#  MYSOFA_INCLUDE_DIRS        The location of libMySofa headers.

find_path(MYSOFA_ROOT_DIR
    NAMES include/mysofa.h
)

find_library(MYSOFA_LIBRARIES
    NAMES libmysofa mysofa
    HINTS ${MYSOFA_ROOT_DIR}/lib
)

find_path(MYSOFA_INCLUDE_DIRS
    NAMES mysofa.h
    HINTS ${MYSOFA_ROOT_DIR}/include
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MySofa DEFAULT_MSG
    MYSOFA_LIBRARIES
    MYSOFA_INCLUDE_DIRS
)

mark_as_advanced(
    MYSOFA_LIBRARIES
    MYSOFA_INCLUDE_DIRS
)