Re: [CMake] autoheader-like functionality?

2010-07-30 Thread Ryan Pavlik
On 7/29/10 5:40 PM, Michael Jackson wrote: Well luckily there are a whole slew of projects to take a look at. HDF5 is one. CMake, VTK, ITK, ParaView are some others. Basically you have a .cmake file that runs all the tests like looking for headers, structs, functions and stuff like that. Each

[CMake] autoheader-like functionality?

2010-07-29 Thread Clifford Yapp
I'm now at the point in writing CMake logic where I need to handle the config.h.in situation, and either have missed the autoheader equivalent functionality in CMake or it doesn't exist yet. Can anybody point me to the right approach to this? I have so-far found: The #cmakedefine mechanism and

Re: [CMake] autoheader-like functionality?

2010-07-29 Thread Michael Jackson
Well luckily there are a whole slew of projects to take a look at. HDF5 is one. CMake, VTK, ITK, ParaView are some others. Basically you have a .cmake file that runs all the tests like looking for headers, structs, functions and stuff like that. Each result is put into a cmake variable.