Thank you all, it does work perfectly.

Félix C. Morency

2007/10/3, Ben Ratzlaff <[EMAIL PROTECTED]>:
>
> Here is how I do it:
>
> SET (MY_CPP
> <source files>
> )
>
> SET (MY_H
> <header files>
> )
>
> SOURCE_GROUP (name_of_group
>     FILES
>     ${MY_CPP}
> )
>
> SOURCE_GROUP (name_of_group\\headers
>     FILES
>     ${MY_H}
> )
>
> SET (MY_SRC
>     ${MY_CPP}
>     ${MY_H}
> )
>
> # add sources to library
> ADD_LIBRARY (${PROJECT}
>     ${MY_SRC}
> )
>
> On 10/3/07, Félix C. Morency <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I would like to know how to list the header files in the header
> > directory in the visual studio IDE. Actually, only the sources and
> > cmake-related files are listed. I want to be able to see the headers as well
> > (cosmetic reasons). I searched in the doc and on the net and found nothing.
> > I tried with ADD_CUSTOM_COMMAND( OUTPUT ${PROJECT_NAME} MAIN_DEPENDENCY
> > ${PROJ_HDRS} ) but only the last header file listed in ${PROJ_HDRS} appears
> > in the IDE. Could someone help please ?
> >
> > Also, could we do the same thing with generated MOC files (QT4) ?
> >
> > Thank you,
> > Félix C. Morency
> >
> > _______________________________________________
> > CMake mailing list
> > CMake@cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to