FMOD.cmake 473 B

123456789101112131415161718192021222324
  1. # -*- cmake -*-
  2. if (FMOD_CMAKE_INCLUDED)
  3. return()
  4. endif (FMOD_CMAKE_INCLUDED)
  5. set (FMOD_CMAKE_INCLUDED TRUE)
  6. include(00-BuildOptions)
  7. include(Prebuilt)
  8. if (FMOD)
  9. use_prebuilt_binary(fmodstudio)
  10. include_directories(SYSTEM ${LIBS_PREBUILT_DIR}/include)
  11. if (DARWIN OR LINUX)
  12. set(FMOD_LIBRARY fmod)
  13. elseif (WINDOWS)
  14. set(FMOD_LIBRARY fmod_vc)
  15. endif ()
  16. message(STATUS "Building with FMOD Studio audio support")
  17. add_definitions(-DLL_FMOD=1)
  18. endif ()