File: FindTremor.cmake

package info (click to toggle)
allegro5 2%3A5.2.10.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 10,872 kB
  • sloc: ansic: 109,795; cpp: 12,976; objc: 4,592; java: 2,845; python: 2,595; javascript: 1,238; sh: 1,008; makefile: 41; xml: 27; pascal: 24
file content (30 lines) | stat: -rw-r--r-- 915 bytes parent folder | download | duplicates (4)
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
# - Find Tremor
#
#  TREMOR_INCLUDE_DIR - where to find Tremor headers.
#  TREMOR_LIBRAY      - List of libraries when using libTremor.
#  TREMOR_FOUND       - True if Tremor found.

if(TREMOR_INCLUDE_DIR)
    # Already in cache, be silent
    set(TREMOR_FIND_QUIETLY TRUE)
endif(TREMOR_INCLUDE_DIR)

find_path(TREMOR_INCLUDE_DIR tremor/ivorbisfile.h)
find_library(TREMOR_LIBRARY NAMES vorbisidec)

# Handle the QUIETLY and REQUIRED arguments and set TREMOR_FOUND to TRUE if
# all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
set(FPHSA_NAME_MISMATCHED TRUE)
find_package_handle_standard_args(TREMOR DEFAULT_MSG
    TREMOR_INCLUDE_DIR TREMOR_LIBRARY)

mark_as_advanced(TREMOR_INCLUDE_DIR TREMOR_LIBRARY)

if(TREMOR_FOUND)
  set(TREMOR_LIBRARIES ${TREMOR_LIBRARY} ${OGG_LIBRARY})
else(TREMOR_FOUND)
  set(TREMOR_LIBRARIES)
endif(TREMOR_FOUND)

mark_as_advanced(TREMOR_INCLUDE_DIR TREMOR_LIBRARY)