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
- Host: GitHub
- URL: https://github.com/lagadic/cmake_module_matlab
- Owner: lagadic
- License: other
- Created: 2014-12-05T13:28:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T22:56:40.000Z (about 9 years ago)
- Last Synced: 2025-10-05T20:44:14.637Z (8 months ago)
- Language: CMake
- Size: 12.7 KB
- Stars: 1
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.