From 7212ad9f0ec062df332655439d3a3c7dc22c2f5c Mon Sep 17 00:00:00 2001 From: Alexandr Arutjunov Date: Sat, 10 Sep 2016 09:16:47 +0300 Subject: [PATCH] [+] FindRT cmake module. --- cmake-modules/FindRT.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cmake-modules/FindRT.cmake diff --git a/cmake-modules/FindRT.cmake b/cmake-modules/FindRT.cmake new file mode 100644 index 0000000..17d5df8 --- /dev/null +++ b/cmake-modules/FindRT.cmake @@ -0,0 +1,20 @@ +# Try to find real time libraries +# Once done, this will define +# +# RT_FOUND - system has rt library +# RT_LIBRARIES - rt libraries directory +# +# Source: https://gitlab.cern.ch/dss/eos/commit/44070e575faaa46bd998708ef03eedb381506ff0 +# + +if(RT_LIBRARIES) + set(RT_FIND_QUIETLY TRUE) +endif(RT_LIBRARIES) + +find_library(RT_LIBRARY rt) +set(RT_LIBRARIES ${RT_LIBRARY}) +# handle the QUIETLY and REQUIRED arguments and set +# RT_FOUND to TRUE if all listed variables are TRUE +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(rt DEFAULT_MSG RT_LIBRARY) +mark_as_advanced(RT_LIBRARY) -- 2.7.4