[Cmake] ADD_EXECUTABLE -- include hfiles in srclists?
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Mar 10 14:10:32 EST 2003
Hi Mark,
In general there is nothing wrong with putting them in the source list.
This way I think the header files will appear in Visual Studio.
Unfortunately .hpp files are mistaken for source files. This will be
fixed. Until then, just take .hpp files out of the source list.
Andy
On Mon, 2003-03-10 at 13:56, Mark Foskey wrote:
> Should I include .h files in the source list(s) for an ADD_EXECUTABLE
> function? By analogy with a makefile, one might think not, since the
> surce list is typically (or at least often) used to generate the .o
> files. But, I have seen CMakeLists.txt files that had the .h files
> included, and perhaps they are used to acquire dependencies.
>
> I ask this because I am using some code that (nonstandardly) has ".hpp"
> files, which seem to trigger the request for a .o file in the generated
> Makefile. I am in a position to rename the files to .h files if
> necessary, but I'd like to know if it even belongs in the srclist.
More information about the CMake
mailing list