FindRT.cmake 596 B

1234567891011121314151617181920
  1. # Try to find real time libraries
  2. # Once done, this will define
  3. #
  4. # RT_FOUND - system has rt library
  5. # RT_LIBRARIES - rt libraries directory
  6. #
  7. # Source: https://gitlab.cern.ch/dss/eos/commit/44070e575faaa46bd998708ef03eedb381506ff0
  8. #
  9. if(RT_LIBRARIES)
  10. set(RT_FIND_QUIETLY TRUE)
  11. endif(RT_LIBRARIES)
  12. find_library(RT_LIBRARY rt)
  13. set(RT_LIBRARIES ${RT_LIBRARY})
  14. # handle the QUIETLY and REQUIRED arguments and set
  15. # RT_FOUND to TRUE if all listed variables are TRUE
  16. include(FindPackageHandleStandardArgs)
  17. find_package_handle_standard_args(RT DEFAULT_MSG RT_LIBRARY)
  18. mark_as_advanced(RT_LIBRARY)