Looping over files matching wildcard in CMake -


I want to use CMake to run some tests. All files matching "fixtures / *. Ext" in one exam should be called on a valid script. How can convert the following pseudo-bounds into a real limit?

  i = 0 for file in fixtures / *. Ext; ADD_TEST (valid _ $ {i}, "validator", $ file) "i = i + 1" done  

like this:

  file (globe files "fixtures / * .ext") foreach (file $ {files}) ... $ {i} Get the test name add_test (valid _ $ {i}, "validator", $ {file}) endburn ()  

but this will be for you i Does not count. Is it important that you have an integer suffix for the test? Otherwise you can use the file (...) to extract the filename (without the extension) to use.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -