Skip to content

Consider use of FindMATLAB module from CMake BASIS #37

@schuhschuh

Description

@schuhschuh

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})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions