/[pcsx2_0.9.7]/trunk/cmake/FindA52.cmake
ViewVC logotype

Contents of /trunk/cmake/FindA52.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 11 months ago) by william
File size: 697 byte(s)
committing r3113 initial commit again...
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)

  ViewVC Help
Powered by ViewVC 1.1.22