FindOPUS.cmake 417 B

12345678910111213
  1. if(TARGET opus)
  2. set(OPUS_FOUND TRUE)
  3. set(OPUS_INCLUDE_DIRS $<TARGET_PROPERTY:opus,INTERFACE_INCLUDE_DIRECTORIES>)
  4. set(OPUS_LIBRARIES opus)
  5. # Provide an alias for consistency with modern CMake
  6. if(NOT TARGET OPUS::OPUS)
  7. add_library(OPUS::OPUS ALIAS opus)
  8. endif()
  9. else()
  10. set(OPUS_FOUND FALSE)
  11. message(FATAL_ERROR "Opus was not added with add_subdirectory before calling find_package(Opus).")
  12. endif()