1file(GLOB filter_files ${CMAKE_CURRENT_SOURCE_DIR}/*.txt) 2foreach(filter_file ${filter_files}) 3 set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${filter_file}) 4endforeach() 5