Findcoz-profiler.cmake 818 B

1234567891011121314151617181920212223
  1. find_path(COZ_INCLUDE_DIRS NAMES coz.h)
  2. find_library(COZ_LIBRARIES NAMES coz PATH_SUFFIXES coz-profiler)
  3. include(FindPackageHandleStandardArgs)
  4. find_package_handle_standard_args(coz-profiler
  5. DEFAULT_MSG
  6. COZ_LIBRARIES
  7. COZ_INCLUDE_DIRS)
  8. if(COZ-PROFILER_FOUND)
  9. add_library(coz::coz INTERFACE IMPORTED)
  10. set_target_properties(coz::coz
  11. PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
  12. ${COZ_INCLUDE_DIRS}
  13. INTERFACE_LINK_LIBRARIES
  14. ${COZ_LIBRARIES})
  15. else(COZ-PROFILER_FOUND)
  16. set(COZ_LIBRARIES)
  17. set(COZ_INCLUDE_DIRS)
  18. endif(COZ-PROFILER_FOUND)
  19. mark_as_advanced(COZ_INCLUDE_DIRS COZ_LIBRARIES)