FindCUBEB.cmake 515 B

12345678910111213141516
  1. find_path(CUBEB_INCLUDE_DIR cubeb.h PATH_SUFFIXES cubeb)
  2. find_library(CUBEB_LIBRARY cubeb)
  3. mark_as_advanced(CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
  4. include(FindPackageHandleStandardArgs)
  5. find_package_handle_standard_args(CUBEB DEFAULT_MSG
  6. CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
  7. if(CUBEB_FOUND AND NOT TARGET cubeb::cubeb)
  8. add_library(cubeb::cubeb UNKNOWN IMPORTED)
  9. set_target_properties(cubeb::cubeb PROPERTIES
  10. IMPORTED_LOCATION "${CUBEB_LIBRARY}"
  11. INTERFACE_INCLUDE_DIRECTORIES "${CUBEB_INCLUDE_DIR}"
  12. )
  13. endif()