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.

FindThirdPartyBoost_Chrono.cmake 1.2KB

12345678910111213141516171819202122232425262728293031
  1. # ---------------------------------
  2. # Finds third party boost chrono
  3. # Adds a def that its present
  4. # ---------------------------------
  5. FIND_PATH(PATH_BOOST_CHRONO "include/boost/chrono.hpp" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/boost ${OV_CUSTOM_DEPENDENCIES_PATH} NO_DEFAULT_PATH)
  6. FIND_PATH(PATH_BOOST_CHRONO "include/boost/chrono.hpp" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/boost)
  7. IF(PATH_BOOST_CHRONO)
  8. debug_message( " Found boost chrono includes...")
  9. ADD_DEFINITIONS(-DTARGET_HAS_Boost_Chrono)
  10. ELSE(PATH_BOOST_CHRONO)
  11. MESSAGE(WARNING " FAILED to find boost chrono includes...")
  12. ENDIF(PATH_BOOST_CHRONO)
  13. IF(UNIX)
  14. FIND_LIBRARY(LIB_Boost_Chrono NAMES "boost_chrono-mt" "boost_chrono" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/lib NO_DEFAULT_PATH)
  15. FIND_LIBRARY(LIB_Boost_Chrono NAMES "boost_chrono-mt" "boost_chrono" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/lib)
  16. IF(LIB_Boost_Chrono)
  17. debug_message( " [ OK ] lib ${LIB_Boost_Chrono}")
  18. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_Boost_Chrono} )
  19. ELSE(LIB_Boost_Chrono)
  20. MESSAGE(WARNING " [FAILED] lib boost_chrono-mt")
  21. MESSAGE(WARNING " [FAILED] lib boost_chrono")
  22. ENDIF(LIB_Boost_Chrono)
  23. ENDIF(UNIX)
  24. IF(WIN32)
  25. OV_LINK_BOOST_LIB("chrono" ${OV_WIN32_BOOST_VERSION})
  26. ENDIF(WIN32)