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_Math.cmake 1.1KB

12345678910111213141516171819202122232425262728293031
  1. # ---------------------------------
  2. # Finds third party boost
  3. # Adds library to target
  4. # Adds include path
  5. # ---------------------------------
  6. GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_ThirdPartyBoost_Math)
  7. INCLUDE("FindThirdPartyBoost")
  8. IF(UNIX)
  9. FIND_LIBRARY(LIB_Boost_Math NAMES "boost_math_c99" PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES lib NO_DEFAULT_PATH NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH)
  10. # OV_PRINT(OV_PRINTED " looking in ${LIST_DEPENDENCIES_PATH}")
  11. IF(LIB_Boost_Math)
  12. OV_PRINT(OV_PRINTED " Found boost math...")
  13. OV_PRINT(OV_PRINTED " [ OK ] lib ${LIB_Boost_Math}")
  14. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_Boost_Math} )
  15. ELSE(LIB_Boost_Math)
  16. OV_PRINT(OV_PRINTED " FAILED to find boost math...")
  17. OV_PRINT(OV_PRINTED " [FAILED] lib libboost_math_c99")
  18. ENDIF(LIB_Boost_Math)
  19. ENDIF(UNIX)
  20. IF(WIN32)
  21. IF(PATH_BOOST)
  22. OV_LINK_BOOST_LIB("math_c99" ${OV_WIN32_BOOST_VERSION} )
  23. ENDIF(PATH_BOOST)
  24. ENDIF(WIN32)
  25. SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_ThirdPartyBoost_Math "Yes")