summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindMatlab/MatlabTest2.cmake
blob: 4295d3c730e0a359aaca55e1b0bd9f7f8215cb9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required (VERSION 2.8.12)
enable_testing()
project(findmatlab_runcmake_test2)

if(NOT DEFINED matlab_required)
  set(matlab_required REQUIRED)
endif()

if(NOT DEFINED Matlab_ROOT_DIR AND NOT "${matlab_root}" STREQUAL "")
  set(Matlab_ROOT_DIR ${matlab_root})
endif()

find_package(Matlab ${matlab_required} COMPONENTS MX_LIBRARY)