[Release] Webkit2-efl-123997_0.11.46
[framework/web/webkit-efl.git] / Source / cmake / FindLibavcodec.cmake
1 include(LibFindMacros)
2
3 # Use pkg-config to get hints about paths
4 libfind_pkg_check_modules(Libavcodec_PKGCONF libavcodec)
5
6 set(Libavcodec_PKGCONF "/usr/lib/pkgconfig/")
7 set(Libavcodec_INCLUDE_DIR "/usr/include/libavcodec/")
8 set(Libavcodec_LIBRARY_DIR "/usr/lib/")
9
10 # Finally the library itself
11 find_library(Libavcodec_LIBRARY
12   NAMES libavcodec
13   PATHS ${Libavcodec_LIBRARY_DIR}
14 )
15
16 # Set the include dir variables and the libraries and let libfind_process do the rest.
17 # NOTE: Singular variables for this library, plural for libraries this lib depends on.
18 set(Libavcodec_INCLUDES Libavcodec_INCLUDE_DIR)
19 set(Libavcodec_LIBS "${Libavcodec_LIBRARY_DIR}libavcodec.so")
20
21   MESSAGE("Libavcodec_LIBS-->" "${Libavcodec_LIBS}")
22   MESSAGE("Libavcodec_INCLUDE_DIR-->" "${Libavcodec_INCLUDE_DIR}")
23   MESSAGE("Libavcodec_PKGCONF-->" "${Libavcodec_PKGCONF}")
24
25 libfind_process(libavcodec)
26