Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3d035a25 authored by hhakim's avatar hhakim
Browse files

Delete cmake script part for installing project embedded matio 1.5.7 (it was...

Delete cmake script part for installing project embedded matio 1.5.7 (it was deleted long time ago).
parent 2dd1795e
No related branches found
No related tags found
No related merge requests found
......@@ -55,24 +55,7 @@ if ( (MATIO_LIB_FILE) AND (MATIO_INC_DIR) )
message(STATUS "matio include is here : ${MATIO_INC_DIR}")
else ( (MATIO_LIB_FILE) AND (MATIO_INC_DIR) )
if(UNIX)
message(STATUS "------------------------------------------------")
message(STATUS "------------------------------------------------")
message(STATUS "------------ MATIO LIB INSTALLATION ------------")
message(STATUS "------------------------------------------------")
message(STATUS "------------------------------------------------")
#exec_program("wget -P ${CMAKE_SOURCE_DIR}/externals/unix/tarLibs http://github.com/xianyi/OpenBLAS/archive/v0.2.18.tar.gz")
set(MATIO_LIB_NAME "matio-1.5.7.7z")
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/externals/unix/matio)
file(ARCHIVE_EXTRACT INPUT ${CMAKE_SOURCE_DIR}/externals/unix/${MATIO_LIB_NAME} DESTINATION ${CMAKE_SOURCE_DIR}/externals/unix/)
endif()
exec_program("rm -r ${CMAKE_SOURCE_DIR}/externals/unix/matio")
exec_program("mv ${CMAKE_SOURCE_DIR}/externals/unix/matio-* ${CMAKE_SOURCE_DIR}/externals/unix/matio")
exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/matio && chmod -R 755 ./ && ./configure && make --quiet") # && make check
exec_program("cd ${CMAKE_SOURCE_DIR}/externals/unix/matio && sudo make install") # && make check
# NOTE WARNING : WE DON'T run make install because it is not a root user install. We used directly the lib and include in sdk_matio package.
# NOTE IF you have not 7z -->mac : brew install p7zip
add_include_path(INCLUDE_PATH_LIST_TMP_MATIO "${PROJECT_SOURCE_DIR}/externals/unix/matio/src")
add_library_path(LIBRARY_PATH_LIST_TMP_MATIO "${PROJECT_SOURCE_DIR}/externals/unix/matio/src/.libs")
find_library(MATIO matio REQUIRED)
elseif(WIN32)
# TODO
else(UNIX)
......
......@@ -14,7 +14,7 @@ cmake -DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=
# concise output for make (gitlab output is limited)
make 2>&1 | tee /tmp/log_$(basename $0)_make_$(date +%s) | grep "error:\|Building\|Link\|creating"
make clean
# clean might be not enough, explicitly delete object files
# clean might be not enough, explicitly delete object files (more space for rpm/deb generation)
find ./ -name "*.o" -delete
cpack -G RPM -C CPackConfig.cmake
# remove package temporary files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment