[CMake] Exclude CMakeFiles path from GLOB_RECURSE
Diablo 666
thediablo666 at hotmail.de
Thu Jul 1 03:45:07 EDT 2010
Hi,
I'm currently trying to use the following line to include all source files into my build:
file (GLOB_RECURSE Files_CPP *.cpp)
add_executable(test
${Files_CPP}
)
Everything runs fine while using an out-of-source build, but for in-source builds these lines include .cpp files from the CMakeFiles directory. Is there any way to exclude this directory within the file command?
Best regards,
Andreas
_________________________________________________________________
http://redirect.gimas.net/?n=M1007xHM2
Räumen Sie Ihr Postfach auf - ganz einfach mit Hotmail!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100701/12eeaa21/attachment.htm>
More information about the CMake
mailing list