Only install (and run) testSerialization.m if GTSAM_WRAP_SERIALIZATION is on.
parent
00896629c4
commit
83d02a7f27
|
@ -367,6 +367,11 @@ endfunction()
|
||||||
# should be installed to all build type toolboxes
|
# should be installed to all build type toolboxes
|
||||||
function(install_matlab_scripts source_directory patterns)
|
function(install_matlab_scripts source_directory patterns)
|
||||||
set(patterns_args "")
|
set(patterns_args "")
|
||||||
|
set(exclude_patterns "")
|
||||||
|
if(NOT GTSAM_WRAP_SERIALIZATION)
|
||||||
|
set(exclude_patterns "testSerialization.m")
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(pattern ${patterns})
|
foreach(pattern ${patterns})
|
||||||
list(APPEND patterns_args PATTERN "${pattern}")
|
list(APPEND patterns_args PATTERN "${pattern}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -381,10 +386,10 @@ function(install_matlab_scripts source_directory patterns)
|
||||||
# Split up filename to strip trailing '/' in GTSAM_TOOLBOX_INSTALL_PATH if there is one
|
# Split up filename to strip trailing '/' in GTSAM_TOOLBOX_INSTALL_PATH if there is one
|
||||||
get_filename_component(location "${GTSAM_TOOLBOX_INSTALL_PATH}" PATH)
|
get_filename_component(location "${GTSAM_TOOLBOX_INSTALL_PATH}" PATH)
|
||||||
get_filename_component(name "${GTSAM_TOOLBOX_INSTALL_PATH}" NAME)
|
get_filename_component(name "${GTSAM_TOOLBOX_INSTALL_PATH}" NAME)
|
||||||
install(DIRECTORY "${source_directory}" DESTINATION "${location}/${name}${build_type_tag}" CONFIGURATIONS "${build_type}" FILES_MATCHING ${patterns_args} PATTERN ".svn" EXCLUDE)
|
install(DIRECTORY "${source_directory}" DESTINATION "${location}/${name}${build_type_tag}" CONFIGURATIONS "${build_type}" FILES_MATCHING ${patterns_args} PATTERN "${exclude_patterns}" EXCLUDE)
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
else()
|
||||||
install(DIRECTORY "${source_directory}" DESTINATION "${GTSAM_TOOLBOX_INSTALL_PATH}" FILES_MATCHING ${patterns_args} PATTERN ".svn" EXCLUDE)
|
install(DIRECTORY "${source_directory}" DESTINATION "${GTSAM_TOOLBOX_INSTALL_PATH}" FILES_MATCHING ${patterns_args} PATTERN "${exclude_patterns}" EXCLUDE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
|
@ -48,8 +48,10 @@ testVisualISAMExample
|
||||||
display 'Starting: testUtilities'
|
display 'Starting: testUtilities'
|
||||||
testUtilities
|
testUtilities
|
||||||
|
|
||||||
display 'Starting: testSerialization'
|
if(exist('testSerialization.m','file'))
|
||||||
testSerialization
|
display 'Starting: testSerialization'
|
||||||
|
testSerialization
|
||||||
|
end
|
||||||
|
|
||||||
% end of tests
|
% end of tests
|
||||||
display 'Tests complete!'
|
display 'Tests complete!'
|
||||||
|
|
Loading…
Reference in New Issue