summaryrefslogtreecommitdiff
path: root/indra/cmake/FMOD.cmake
blob: 96434e38fadfef1662dcf42f1f083d6174b052fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- cmake -*-

set(FMOD ON CACHE BOOL "Use FMOD sound library.")

if (FMOD)
  if (STANDALONE)
    set(FMOD_FIND_REQUIRED ON)
    include(FindFMOD)
  else (STANDALONE)
    include(Prebuilt)
    use_prebuilt_binary(fmod)
    
    if (WINDOWS)
      set(FMOD_LIBRARY fmod)
    elseif (DARWIN)
      set(FMOD_LIBRARY fmod)
    elseif (LINUX)
      set(FMOD_LIBRARY fmod-3.75)
    endif (WINDOWS)

    SET(FMOD_LIBRARIES ${FMOD_LIBRARY})
    set(FMOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
  endif (STANDALONE)
endif (FMOD)