fixed stupid assertion failure in close_audio()
[svc.git] / cmake / FindCelt.cmake
blob987016f8780331615b11305bd21db06d946945ac
1 # - Find Celt
2 # Find the Celt libraries (asound)
4 #  This module defines the following variables:
5 #     CELT_FOUND           - True if CELT_INCLUDE_DIR & CELT_LIBRARY
6 #                            are found
7 #     CELT_LIBRARIES       - Set when CELT_LIBRARY is found
8 #     CELT_INCLUDE_DIRS    - Set when CELT_INCLUDE_DIR is found
10 #     CELT_INCLUDE_DIR     - where to find celt.h, etc.
11 #     CELT_LIBRARY         - the celt library
14 #=============================================================================
15 #=============================================================================
17 find_path(CELT_INCLUDE_DIR NAMES celt.h
18           PATH_SUFFIXES celt
19           DOC "Celt include directory"
22 find_library(CELT_LIBRARY NAMES celt0 celt
23           DOC "The Celt library"
26 include(FindPackageHandleStandardArgs)
27 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CELT DEFAULT_MSG CELT_LIBRARY CELT_INCLUDE_DIR)
29 if(CELT_FOUND)
30   set( CELT_LIBRARIES ${CELT_LIBRARY} )
31   set( CELT_INCLUDE_DIRS ${CELT_INCLUDE_DIR} )
32 endif()
34 mark_as_advanced(CELT_INCLUDE_DIR CELT_LIBRARY)