Find MATLAB installation. More...
#include "FindPackageHandleStandardArgs.cmake"
Go to the source code of this file.
Variables | |
cmake | _MATLAB_EXECUTABLE_NAMES |
cmake | _MATLAB_LIBRARY_NAMES |
cmake | _MATLAB_OPTIONAL_EXECUTABLE_NAMES |
cmake | MATLAB_DIR |
cmake | MATLAB_FOUND |
cmake | MATLAB_INCLUDE_DIRS |
cmake | MATLAB_INCLUDES |
cmake | MATLAB_LIBRARIES |
cmake | MATLAB_PATH_SUFFIXES |
Detailed Description
Find MATLAB installation.
- Input variables:
MATLAB_DIR The installation directory of MATLAB. Can also be set as environment variable. MATLABDIR Alternative environment variable for MATLAB_DIR
.MATLAB_FIND_COMPONENTS The COMPONENTS
argument(s) of the find_package() command can be used to only look for specific MATLAB executables and libraries. Valid component values are "matlab", "mcc", "mexext", "mex", "libmex", "mx" or "libmx", and "eng" or "libeng".MATLAB_FIND_OPTIONAL_COMPONENTS The OPTIONAL_COMPONENTS
argument(s) of the find_package() command. SeeMATLAB_FIND_COMPONENTS
.MATLAB_PATH_SUFFIXES Path suffixes which are used to find the proper MATLAB libraries. By default, this find module tries to determine the path suffix from the CMake variables which describe the system. For example, on 64-bit Unix-based systems, the libraries are searched in MATLAB_DIR/bin/glnxa64
. Set this variable before the find_package() command if this find module fails to determine the correct location of the MATLAB libraries within the root directory.
- Output variables:
MATLAB_FOUND Whether the package was found and the following CMake variables are valid. MATLAB_EXECUTABLE The absolute path of the found matlab executable. MATLAB_VERSION_STRING Version of the found matlab executable (e.g., 7.14.0). MATLAB_VERSION_MAJOR Major version of the found matlab executable (e.g., 7). MATLAB_VERSION_MINOR Minor version of the found matlab executable (e.g., 14). MATLAB_VERSION_PATCH Patch of the found matlab executable (e.g., 0). MATLAB_RELEASE Release version of the found matlab executable (e.g., R2012a). MATLAB_MCC_EXECUTABLE The absolute path of the found MATLAB Compiler (mcc) executable. MATLAB_MEX_EXECUTABLE The absolute path of the found MEX script (mex) executable. MATLAB_MEXEXT_EXECUTABLE The absolute path of the found mexext script executable. MATLAB_INCLUDE_DIR Package include directories. MATLAB_INCLUDES Include directories including prerequisite libraries. MATLAB_mex_LIBRARY The MEX library of MATLAB. MATLAB_mx_LIBRARY The mx
library of MATLAB.MATLAB_eng_LIBRARY The MATLAB engine library. MATLAB_LIBRARY All MATLAB libraries. MATLAB_LIBRARIES Package libraries and prerequisite libraries.
Copyright (c) 2011, 2012, 2013 University of Pennsylvania. All rights reserved.
See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.
Contact: SBIA Group <sbia-software at uphs.upenn.edu>
Definition in file FindMATLAB.cmake.
Variable Documentation
cmake _MATLAB_EXECUTABLE_NAMES |
Definition at line 192 of file FindMATLAB.cmake.
cmake _MATLAB_LIBRARY_NAMES |
Definition at line 194 of file FindMATLAB.cmake.
Definition at line 193 of file FindMATLAB.cmake.
cmake MATLAB_DIR |
Definition at line 122 of file FindMATLAB.cmake.
cmake MATLAB_FOUND |
Definition at line 362 of file FindMATLAB.cmake.
cmake MATLAB_INCLUDE_DIRS |
Definition at line 326 of file FindMATLAB.cmake.
cmake MATLAB_INCLUDES |
Definition at line 323 of file FindMATLAB.cmake.
cmake MATLAB_LIBRARIES |
Definition at line 324 of file FindMATLAB.cmake.
cmake MATLAB_PATH_SUFFIXES |
Definition at line 135 of file FindMATLAB.cmake.