12345678910111213141516171819202122232425262728293031 |
- # ---------------------------------
- # Finds third party boost chrono
- # Adds a def that its present
- # ---------------------------------
-
- FIND_PATH(PATH_BOOST_CHRONO "include/boost/chrono.hpp" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/boost ${OV_CUSTOM_DEPENDENCIES_PATH} NO_DEFAULT_PATH)
- FIND_PATH(PATH_BOOST_CHRONO "include/boost/chrono.hpp" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/boost)
-
- IF(PATH_BOOST_CHRONO)
- debug_message( " Found boost chrono includes...")
- ADD_DEFINITIONS(-DTARGET_HAS_Boost_Chrono)
- ELSE(PATH_BOOST_CHRONO)
- MESSAGE(WARNING " FAILED to find boost chrono includes...")
- ENDIF(PATH_BOOST_CHRONO)
-
- IF(UNIX)
- FIND_LIBRARY(LIB_Boost_Chrono NAMES "boost_chrono-mt" "boost_chrono" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/lib NO_DEFAULT_PATH)
- FIND_LIBRARY(LIB_Boost_Chrono NAMES "boost_chrono-mt" "boost_chrono" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/lib)
-
- IF(LIB_Boost_Chrono)
- debug_message( " [ OK ] lib ${LIB_Boost_Chrono}")
- TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_Boost_Chrono} )
- ELSE(LIB_Boost_Chrono)
- MESSAGE(WARNING " [FAILED] lib boost_chrono-mt")
- MESSAGE(WARNING " [FAILED] lib boost_chrono")
- ENDIF(LIB_Boost_Chrono)
- ENDIF(UNIX)
-
- IF(WIN32)
- OV_LINK_BOOST_LIB("chrono" ${OV_WIN32_BOOST_VERSION})
- ENDIF(WIN32)
|