Diablo 666
2010-07-01 07:45:07 UTC
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!
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!