1 |
# Try to find A52 |
2 |
# Once done, this will define |
3 |
# |
4 |
# A52_FOUND - system has A52 |
5 |
# A52_INCLUDE_DIR - the A52 include directories |
6 |
# A52_LIBRARIES - link these to use A52 |
7 |
|
8 |
if(A52_INCLUDE_DIR AND A52_LIBRARIES) |
9 |
set(A52_FIND_QUIETLY TRUE) |
10 |
endif(A52_INCLUDE_DIR AND A52_LIBRARIES) |
11 |
|
12 |
# include dir |
13 |
find_path(A52_INCLUDE_DIR a52dec/a52.h) |
14 |
|
15 |
# finally the library itself |
16 |
find_library(libA52 NAMES a52) |
17 |
set(A52_LIBRARIES ${libA52}) |
18 |
|
19 |
# handle the QUIETLY and REQUIRED arguments and set A52_FOUND to TRUE if |
20 |
# all listed variables are TRUE |
21 |
include(FindPackageHandleStandardArgs) |
22 |
find_package_handle_standard_args(A52 DEFAULT_MSG A52_LIBRARIES A52_INCLUDE_DIR) |
23 |
|
24 |
mark_as_advanced(A52_LIBRARIES A52_INCLUDE_DIR) |