Skip to content
Snippets Groups Projects
Commit 303d8e29 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Ignore temporary files when searching for RobotUnitModules

parent bbf0799f
No related branches found
No related tags found
1 merge request!39Robot unit v3
......@@ -147,9 +147,11 @@ set(RobotUnitModules
file(GLOB_RECURSE files_full_path "${CMAKE_CURRENT_SOURCE_DIR}/RobotUnitModules/*")
set(files)
foreach(file_full_path ${files_full_path})
#remove prefix
string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/" "" file_rel_path "${file_full_path}")
list(APPEND files ${file_rel_path})
if(NOT "${file_full_path}" MATCHES "^.*\\.(autosave|swp|~|orig)$")
#remove prefix
string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/" "" file_rel_path "${file_full_path}")
list(APPEND files ${file_rel_path})
endif()
endforeach()
#remove base module / collection header
list(REMOVE_ITEM files RobotUnitModules/RobotUnitModuleBase.h)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment