mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
20 lines
505 B
CMake
20 lines
505 B
CMake
|
|
# Try to find real time libraries
|
||
|
|
# Once done, this will define
|
||
|
|
#
|
||
|
|
# RT_FOUND - system has rt library
|
||
|
|
# RT_LIBRARIES - rt libraries directory
|
||
|
|
|
||
|
|
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)
|