Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a1a9c5d5 authored by Adrien Leman's avatar Adrien Leman Committed by hhakim
Browse files

modif AL externals lib

parent 5ce69406
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,17 @@ else (EIGEN_INC_DIR) ...@@ -37,7 +37,17 @@ else (EIGEN_INC_DIR)
set(INCLUDE_PATH_LIST ${INCLUDE_PATH_LIST_TMP_EIGEN})# CACHE PATH "List of include paths used as PATH parameter in find_path") set(INCLUDE_PATH_LIST ${INCLUDE_PATH_LIST_TMP_EIGEN})# CACHE PATH "List of include paths used as PATH parameter in find_path")
#message(STATUS "INCLUDE_PATH_LIST=${INCLUDE_PATH_LIST}") #message(STATUS "INCLUDE_PATH_LIST=${INCLUDE_PATH_LIST}")
check_external_includes("Eigen/Dense" EIGEN_INC_DIR 0) check_external_includes("Eigen/Dense" EIGEN_INC_DIR 0)
if ( EIGEN_INC_DIR )
message(STATUS "Eigen library is available here: ${EIGEN_INC_DIR}") message(STATUS "Eigen library is available here: ${EIGEN_INC_DIR}")
else(EIGEN_INC_DIR)
message(STATUS "Eigen library is not available here: ${EIGEN_INC_DIR}")
message(FATAL_ERROR "Eigen library is not installed on your system. Please check Eigen install.")
endif(EIGEN_INC_DIR)
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
endif (EIGEN_INC_DIR) endif (EIGEN_INC_DIR)
......
...@@ -44,6 +44,7 @@ else ( (MATIO_LIB_FILE) AND (MATIO_INC_DIR) ) ...@@ -44,6 +44,7 @@ else ( (MATIO_LIB_FILE) AND (MATIO_INC_DIR) )
message(STATUS "matio include is here : ${MATIO_INC_DIR}") message(STATUS "matio include is here : ${MATIO_INC_DIR}")
else() else()
message(STATUS "ERROR !!! matio is not installed !!!!!") message(STATUS "ERROR !!! matio is not installed !!!!!")
message(FATAL_ERROR "matio lib is not installed on your system. Please check matio install.")
endif() endif()
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
......
###### chek and find Openblas library ###### chek and find Openblas library
set(LIBRARY_PATH_LIST ${LIBRARY_PATH_LIST_TMP_DEFAULT}) # CACHE PATH "List of library paths used as PATH parameter in find_library") set(LIBRARY_PATH_LIST ${LIBRARY_PATH_LIST_TMP_DEFAULT}) # CACHE PATH "List of library paths used as PATH parameter in find_library")
set(INCLUDE_PATH_LIST ${INCLUDE_PATH_LIST_TMP_DEFAULT})# CACHE PATH "List of include paths used as PATH parameter in find_path") set(INCLUDE_PATH_LIST ${INCLUDE_PATH_LIST_TMP_DEFAULT})# CACHE PATH "List of include paths used as PATH parameter in find_path")
check_external_libraries(openblas OPENBLAS_LIB_FILE 0) check_external_libraries(openblas OPENBLAS_LIB_FILE 0)
check_external_includes("cblas.h" OPENBLAS_INC_DIR 0) check_external_includes("cblas.h" OPENBLAS_INC_DIR 0)
if ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) ) if ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) )
message(STATUS "OpenBlas library and include are available here : ${OPENBLAS_LIB_FILE}") message(STATUS "OpenBlas library is installed here : ${OPENBLAS_LIB_FILE}")
#message(STATUS "OpenBlas include is available here : OPENBLAS_INC_DIR= ${OPENBLAS_INC_DIR}") message(STATUS "OpenBlas include is installed here : ${OPENBLAS_INC_DIR}")
else ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) ) else ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) )
if(UNIX) if(UNIX)
#exec_program("wget -P ${CMAKE_SOURCE_DIR}/externals/unix/tarLibs http://github.com/xianyi/OpenBLAS/archive/v0.2.18.tar.gz") #exec_program("wget -P ${CMAKE_SOURCE_DIR}/externals/unix/tarLibs http://github.com/xianyi/OpenBLAS/archive/v0.2.18.tar.gz")
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
message(STATUS "------------------------------------------------")
message(STATUS "------------ OPENBLAS LIB INSTALLATION ---------") message(STATUS "------------ OPENBLAS LIB INSTALLATION ---------")
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
message(STATUS "------------------------------------------------")
set(OPENBLAS_LIB_NAME "v0.2.18.tar.gz") set(OPENBLAS_LIB_NAME "v0.2.18.tar.gz")
exec_program("tar xzf ${CMAKE_SOURCE_DIR}/externals/unix/tarLibs/${OPENBLAS_LIB_NAME} -C ${CMAKE_SOURCE_DIR}/externals/unix") exec_program("tar xzf ${CMAKE_SOURCE_DIR}/externals/unix/tarLibs/${OPENBLAS_LIB_NAME} -C ${CMAKE_SOURCE_DIR}/externals/unix")
...@@ -41,9 +40,17 @@ else ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) ) ...@@ -41,9 +40,17 @@ else ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) )
set(LIBRARY_PATH_LIST ${LIBRARY_PATH_LIST_TMP_OPENBLAS}) # CACHE PATH "List of include paths used as PATH parameter in find_path") set(LIBRARY_PATH_LIST ${LIBRARY_PATH_LIST_TMP_OPENBLAS}) # CACHE PATH "List of include paths used as PATH parameter in find_path")
check_external_libraries(openblas OPENBLAS_LIB_FILE 0) check_external_libraries(openblas OPENBLAS_LIB_FILE 0)
check_external_includes("cblas.h" OPENBLAS_INC_DIR 0) check_external_includes("cblas.h" OPENBLAS_INC_DIR 0)
message(STATUS "OpenBlas library is available here : ${OPENBLAS_LIB_FILE}")
message(STATUS "OpenBlas include is available here : ${OPENBLAS_INC_DIR}") if ( (OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR) )
message(STATUS "OpenBlas library is installed here : ${OPENBLAS_LIB_FILE}")
message(STATUS "OpenBlas include is installed here : ${OPENBLAS_INC_DIR}")
else((OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR))
message(STATUS "OpenBlas library is not available here : ${OPENBLAS_LIB_FILE}")
message(STATUS "OpenBlas include is not available here : ${OPENBLAS_INC_DIR}")
message(FATAL_ERROR "openBLAS lib is not installed on your system. Please check openBLAS install.")
endif((OPENBLAS_LIB_FILE) AND (OPENBLAS_INC_DIR))
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
################################################################ ################################################################
......
...@@ -44,6 +44,7 @@ else ( (XML2_LIB_FILE) AND (XML_INC_DIR) ) ...@@ -44,6 +44,7 @@ else ( (XML2_LIB_FILE) AND (XML_INC_DIR) )
message(STATUS "libxml/parser.h is here : ${XML_INC_DIR}") message(STATUS "libxml/parser.h is here : ${XML_INC_DIR}")
else() else()
message(STATUS "ERROR !!! xml2 is not installed !!!!!") message(STATUS "ERROR !!! xml2 is not installed !!!!!")
message(FATAL_ERROR "xml2 lib is not installed on your system. Please check xml2 install.")
endif() endif()
message(STATUS "------------------------------------------------") message(STATUS "------------------------------------------------")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment