diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2017-04-29 18:31:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-23 14:30:49 (GMT) |
commit | 59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e (patch) | |
tree | 05897534fca0be23f67df31938a4c237a51f4c98 /Tests/FindMatlab/components_checks | |
parent | ccd17a557cbf8ada18207a72eea78d2adcc9d752 (diff) | |
download | CMake-59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e.zip CMake-59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e.tar.gz CMake-59fb9e89b2bd09a2edd5bbaecb01f43d6f3a2a7e.tar.bz2 |
FindMatlab: Matlab Runtime Compiler support
* Determining automatically the MCR version on OSX and Windows
* Distinguishing between MCR and Matlab
* Specific tests for the MCR
* mexext on windows does not work properly: the mexext is hardcoded
* Doc updates for the MCR
Fixes: #16487
Diffstat (limited to 'Tests/FindMatlab/components_checks')
-rw-r--r-- | Tests/FindMatlab/components_checks/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/FindMatlab/components_checks/CMakeLists.txt b/Tests/FindMatlab/components_checks/CMakeLists.txt index 3dec093..da6a2b0 100644 --- a/Tests/FindMatlab/components_checks/CMakeLists.txt +++ b/Tests/FindMatlab/components_checks/CMakeLists.txt @@ -5,10 +5,18 @@ project(component_checks) set(MATLAB_FIND_DEBUG TRUE) +if(NOT "${MCR_ROOT}" STREQUAL "") + set(Matlab_ROOT_DIR "${MCR_ROOT}") + if(NOT EXISTS "${MCR_ROOT}") + message(FATAL_ERROR "MCR does not exist ${MCR_ROOT}") + endif() +endif() + # the success of the following command is dependent on the current configuration: # - on 32bits builds (cmake is building with 32 bits), it looks for 32 bits Matlab # - on 64bits builds (cmake is building with 64 bits), it looks for 64 bits Matlab -find_package(Matlab REQUIRED COMPONENTS MX_LIBRARY ENG_LIBRARY MAT_LIBRARY MAIN_PROGRAM) +find_package(Matlab REQUIRED COMPONENTS MX_LIBRARY ENG_LIBRARY MAT_LIBRARY + OPTIONAL_COMPONENTS MAIN_PROGRAM) message(STATUS "FindMatlab libraries: ${Matlab_LIBRARIES}") |