Skip to content

Commit 0cb29b9

Browse files
committed
Added an untested MATLAB CMakeLists.txt file so that cmake doesn't complain. I also hope that this would also be helpful for others to make it workable. I don't have MATLAB from Mathworks.
1 parent b466c22 commit 0cb29b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

MATLAB/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
find_package(Matlab)
2+
# This module is untested because I don't have Matlab
3+
# but I want to provide something for completeness and
4+
#hopefully, someone else will work on this..
5+
if(Matlab_FOUND)
6+
matlab_add_mex(mexlusolve SRC mexlusolve.c LINK_TO superlu )
7+
matlab_add_mex(mexlusolve SRC mexsuperlu.c LINK_TO superlu )
8+
else()
9+
message(STATUS WARNING "This requires MATLAB from Mathworks.")
10+
endif(Matlab_FOUND)

0 commit comments

Comments
 (0)