An open API service indexing awesome lists of open source software.

https://github.com/lagadic/cmake_module_matlab

A CMake Module for finding Matlab and setting compile flags using mex executable
https://github.com/lagadic/cmake_module_matlab

Last synced: 4 months ago
JSON representation

A CMake Module for finding Matlab and setting compile flags using mex executable

Awesome Lists containing this project

README

          

cmake_module_matlab
=============

A CMake Module for finding Matlab based on cmake_modules.

Usage
-----

To use the CMake modules provided by this catkin package, you must `` on it in your `package.xml`, like so:

```xml


cmake_module_matlab

```

Then you must `find_package` it in your `CMakeLists.txt` along with your other catkin build dependencies:

```cmake
find_package(catkin REQUIRED COMPONENTS ... cmake_module_matlab ...)
```

OR by `find_package`'ing it directly:

```cmake
find_package(cmake_module REQUIRED)
```

After the above `find_package` invocations, the modules provided by `cmake_module_matlab` will be available in your `CMAKE_MODULE_PATH` to be found. Then you can find `Matlab` by using the following:

```cmake
find_package(Matlab REQUIRED)
```

The module also contains a template of a rtwmakecfg.m file that can be useful for compiling simulink s-functions.