[Cmake] FIND_FILE
Neil Killeen
Neil . Killeen at atnf . csiro . au
Wed, 25 Jun 2003 14:42:52 +1000 (EST)
Hello
FIND_FILE behaves a bit strangely I think
FIND_FILE (MYNAME1 junk.latex ./HapticViewer)
MESSAGE ("NAME = " ${MYNAME1})
MESSAGE ("")
FIND_FILE (MYNAME2 junk.latex /DATA/ELARA_3/mitk/Source/Code/Composite/Applications/HapticViewer)
MESSAGE ("NAME = " ${MYNAME2})
MESSAGE ("")
These specify the same location, once relatively and once asbolutely
venice-152% cmake ../../Source/
NAME = MYNAME1-NOTFOUND
NAME = /DATA/ELARA_3/mitk/Source/Code/Composite/Applications/HapticViewer/junk.latex
1) Only those paths which are specified with an absolute path work. This
is ok as I know where I am in the tree, but I dont see why relative paths
should not work.
2) Is it possible to wild card and find reecursively ? I would really like to find
the names of ALL files underneath the working directory with the
given wildcarded name. E.g.
FIND_FILES (MYNAMES *.latex .)
Even with an absolute path e.g.
FIND_FILE (MYNAME3 *.latex /DATA/ELARA_3/mitk/Source/Code/Composite/Applications)
(where there are many directories beneath Applications) would be ok. I
have tried many syntaxes with no joy.
What I am trying to do is automatically build an index of application
documentation.
thanks
Neil