diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2019-06-24 18:48:11 (GMT) |
---|---|---|
committer | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2019-06-26 17:53:02 (GMT) |
commit | 11e0009b7721262a0eb772fe45abb38ef19bf7b4 (patch) | |
tree | 3874bec30be8dbac718cdaf7eb1db12c34ad107a /Tests/FindMatlab/basic_checks | |
parent | 06f1560a58391d29b10697b2d5462966cd417b2f (diff) | |
download | CMake-11e0009b7721262a0eb772fe45abb38ef19bf7b4.zip CMake-11e0009b7721262a0eb772fe45abb38ef19bf7b4.tar.gz CMake-11e0009b7721262a0eb772fe45abb38ef19bf7b4.tar.bz2 |
FindMatlab: EXCLUDE_FROM_ALL parameter to matlab_add_mex
Enabling a mex target to be excluded from the `all` target.
Diffstat (limited to 'Tests/FindMatlab/basic_checks')
-rw-r--r-- | Tests/FindMatlab/basic_checks/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/FindMatlab/basic_checks/CMakeLists.txt b/Tests/FindMatlab/basic_checks/CMakeLists.txt index c5be1ea..c0c752a 100644 --- a/Tests/FindMatlab/basic_checks/CMakeLists.txt +++ b/Tests/FindMatlab/basic_checks/CMakeLists.txt @@ -71,3 +71,15 @@ if(RUN_UNIT_TESTS) ) set_tests_properties(${PROJECT_NAME}_matlabtest-4 PROPERTIES WILL_FAIL TRUE) endif() + + +# checking correct flags passed +# EXCLUDE_FROM_ALL appears after a multiargs (like SRC) +matlab_add_mex( + # target name + NAME cmake_matlab_test_exclude_from_all + # output name + OUTPUT_NAME cmake_matlab_mex_dummy + SRC ${CMAKE_CURRENT_SOURCE_DIR}/../matlab_wrapper_failure.cpp + EXCLUDE_FROM_ALL + ) |