🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
884 B

  1. # - Find Oboe
  2. # Find the Oboe library
  3. #
  4. # This module defines the following variable:
  5. # OBOE_FOUND - True if Oboe was found
  6. #
  7. # This module defines the following target:
  8. # oboe::oboe - Import target for linking Oboe to a project
  9. #
  10. find_path(OBOE_INCLUDE_DIR NAMES oboe/Oboe.h
  11. DOC "The Oboe include directory"
  12. )
  13. find_library(OBOE_LIBRARY NAMES oboe
  14. DOC "The Oboe library"
  15. )
  16. # handle the QUIETLY and REQUIRED arguments and set OBOE_FOUND to TRUE if
  17. # all listed variables are TRUE
  18. include(FindPackageHandleStandardArgs)
  19. find_package_handle_standard_args(Oboe REQUIRED_VARS OBOE_LIBRARY OBOE_INCLUDE_DIR)
  20. if(OBOE_FOUND)
  21. add_library(oboe::oboe UNKNOWN IMPORTED)
  22. set_target_properties(oboe::oboe PROPERTIES
  23. IMPORTED_LOCATION ${OBOE_LIBRARY}
  24. INTERFACE_INCLUDE_DIRECTORIES ${OBOE_INCLUDE_DIR})
  25. endif()
  26. mark_as_advanced(OBOE_INCLUDE_DIR OBOE_LIBRARY)