[CMake] Adding extensions to AUX_SOURCE_DIRECTORY

Bill Hoffman bill.hoffman at kitware.com
Thu Feb 26 08:05:43 EST 2009


Reisinger, Thomas Karl wrote:
> Hello,
>  
> AUX_SOURCE_DIRECTORY by default searches for the following extensions - 
> < .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx >
> Because CMake works case sensitive I need to ADD another extension 
> ".CPP" to the command AUX_SOURCE_DIRECTORY.
>  

You should use file(GLOB ...) instead.  However, that said it is much 
better to explicitly list the sources so that cmake can re-run correctly 
when new files are added, or files are removed.

-Bil


More information about the CMake mailing list