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