5 # Find librt library and headers.
7 # The mdoule defines the following variables:
11 # LibRT_FOUND - true if librt was found
12 # LibRT_INCLUDE_DIR - include search path
13 # LibRT_LIBRARIES - libraries to link
16 find_path(LibRT_INCLUDE_DIR
19 find_library(LibRT_LIBRARIES rt)
21 include(FindPackageHandleStandardArgs)
22 find_package_handle_standard_args(LibRT
29 add_library(RT::rt UNKNOWN IMPORTED)
30 set_target_properties(RT::rt
32 IMPORTED_LOCATION ${LibRT_LIBRARIES}
33 INTERFACE_INCLUDE_DIRECTORIES ${LibRT_INCLUDE_DIR})
37 mark_as_advanced(LibRT_LIBRARIES LibRT_INCLUDE_DIR)