I ended up writing my own macro to do the job:<br><a href="http://code.google.com/p/soupcon/source/browse/trunk/findxul/FMP.cmake">http://code.google.com/p/soupcon/source/browse/trunk/findxul/FMP.cmake</a><br>there's also some usage example in my FindXUL module:<br>
<a href="http://code.google.com/p/soupcon/source/browse/trunk/findxul/FindXUL.cmake">http://code.google.com/p/soupcon/source/browse/trunk/findxul/FindXUL.cmake</a><br><br>That's a bit more complex than what I described as it's able to find multiple groups of files in multiple groups of possible paths + path_suffixes.<br>
That's my first time at writing CMake modules so I guess I did a number of things wrong, but at least it's working enough to compile my XUL based app on linux / mac / windows :)<br><br>There's at least one thing I really don't like about that macro though, it generates too many variables in the cache. There's NxM find_path calls (with N being the number of file to find and M the number of path groups), each one generating a cache variable and those variable are just "temporary" variables.<br>
Is there any way to clean those useless cache variables?<br><br>Guillaume<br><br>