Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider use of FindMATLAB module from CMake BASIS #37

Open
schuhschuh opened this issue Dec 16, 2015 · 1 comment
Open

Consider use of FindMATLAB module from CMake BASIS #37

schuhschuh opened this issue Dec 16, 2015 · 1 comment

Comments

@schuhschuh
Copy link
Member

I think the FindMatlab module shipped with CMake cannot look for only specific MATLAB tools/libraries. In particular, it does not look for the MATLAB Compiler Runtime (MCR) library. The IRTK should not link to the MATLAB libraries directly, but the MCR proxy library instead such that users don't need a MATLAB installation to run the code, only a free copy of the MCR.

The FindMATLAB module I wrote for CMake BASIS would be a better candidate.

Usage:

find_package(MATLAB COMPONENTS mwmclmcrrt)
include_directories("${MATLAB_INCLUDE_DIR}")
add_library(foo ...)
target_link_libraries(foo ${MATLAB_mwmclmcrrt_LIBRARY})
@ghisvail
Copy link
Member

I am on it. I have a fix, currently testing on both my machine (Debian 8) and my workstation (Ubuntu 14.04) with the latest MATLAB Runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants