Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
01f267dc
There was an error fetching the commit references. Please try again later.
Commit
01f267dc
authored
9 years ago
by
Adrien Leman
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
matio lib
parent
358787c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/findMATIOLib.cmake
+44
-0
44 additions, 0 deletions
CMake/findMATIOLib.cmake
with
44 additions
and
0 deletions
CMake/findMATIOLib.cmake
0 → 100755
+
44
−
0
View file @
01f267dc
###### 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
(
INCLUDE_PATH_LIST
${
INCLUDE_PATH_LIST_TMP_DEFAULT
}
)
# CACHE PATH "List of include paths used as PATH parameter in find_path")
check_external_includes
(
"matio.h"
MATIO_INC_DIR 0
)
check_external_libraries
(
matio MATIO_LIB_FILE 0
)
if
(
(
MATIO_LIB_FILE
)
AND
(
MATIO_INC_DIR
)
)
message
(
STATUS
"MATIO library and include are available here :
${
MATIO_LIB_FILE
}
"
)
else
(
(
MATIO_LIB_FILE
)
AND
(
MATIO_INC_DIR
)
)
if
(
UNIX
)
#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"
)
exec_program
(
"7z x
${
CMAKE_SOURCE_DIR
}
/externals/unix/tarLibs/
${
MATIO_LIB_NAME
}
-o
${
CMAKE_SOURCE_DIR
}
/externals/unix"
)
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 777 ./ && ./configure && make"
)
# && 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.
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"
)
elseif
(
WIN32
)
#exec_program("wget -P ${CMAKE_SOURCE_DIR}/externals/win http://github.com/xianyi/OpenBLAS/archive/v0.2.18.tar.gz")
#exec_program("tar jxf ${CMAKE_SOURCE_DIR}/externals/win/zipLibs/v0.2.18.tar.bz -C ${CMAKE_SOURCE_DIR}/externals/win")
#exec_program("mv ${CMAKE_SOURCE_DIR}/externals/win/sdk_openBlas* ${CMAKE_SOURCE_DIR}/externals/win/OpenBLAS")
else
(
UNIX
)
message
(
WARNING
"Unknown type of plateform for library OpenBlas"
)
endif
(
UNIX
)
set
(
LIBRARY_PATH_LIST
${
LIBRARY_PATH_LIST_TMP_MATIO
}
)
# CACHE PATH "List of library paths used as PATH parameter in find_library")
set
(
INCLUDE_PATH_LIST
${
INCLUDE_PATH_LIST_TMP_MATIO
}
)
# CACHE PATH "List of include paths used as PATH parameter in find_path")
check_external_includes
(
"matio.h"
MATIO_INC_DIR 0
)
check_external_libraries
(
matio MATIO_LIB_FILE 0
)
if
(
(
MATIO_LIB_FILE
)
AND
(
MATIO_INC_DIR
)
)
message
(
STATUS
"matio lib is here :
${
LIBRARY_PATH_LIST
}
"
)
message
(
STATUS
"matio include is here :
${
INCLUDE_PATH_LIST
}
"
)
else
()
message
(
STATUS
"ERROR !!! matio is not installed !!!!!"
)
endif
()
################################################################
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment