You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindThirdPartyRT.cmake 685B

12345678910111213141516171819202122
  1. # ---------------------------------
  2. # Finds third party rt
  3. # Adds library to target
  4. # Adds include path
  5. # ---------------------------------
  6. GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_ThirdPartyRT)
  7. IF(UNIX)
  8. # For Ubuntu 13.04 (interprocess/ipc/message_queue.hpp in ovasCPluginExternalStimulations.cpp caused dep)
  9. FIND_LIBRARY(LIB_STANDARD_MODULE_RT rt)
  10. IF(LIB_STANDARD_MODULE_RT)
  11. OV_PRINT(OV_PRINTED " Found rt...")
  12. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_STANDARD_MODULE_RT})
  13. ELSE(LIB_STANDARD_MODULE_RT)
  14. OV_PRINT(OV_PRINTED " FAILED to find rt...")
  15. ENDIF(LIB_STANDARD_MODULE_RT)
  16. ENDIF(UNIX)
  17. SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_ThirdPartyBoost_RT "Yes")