Re: [CMake] Add header files to project when there are no cpp files

2012-08-28 Thread David Doria
> Not sure if it works with QtCreator or not, but you should be able to > add_custom_target and use the SOURCES argument to get "source" files > to show up in the generated project. Ah, thanks. I had tried: add_custom_target(MyProject MyProject.h) but not: add_custom_target(MyProject SOURCES My

Re: [CMake] Add header files to project when there are no cpp files

2012-08-28 Thread David Cole
On Tue, Aug 28, 2012 at 10:01 AM, David Doria wrote: > I have just started using QtCreator. When I open a CMake project in > QtCreator, all of my cpp files mentioned in the CMakeLists.txt are added to > the "project". However, my headers (.h) and template implementation (.hpp) > are not added to t

[CMake] Add header files to project when there are no cpp files

2012-08-28 Thread David Doria
I have just started using QtCreator. When I open a CMake project in QtCreator, all of my cpp files mentioned in the CMakeLists.txt are added to the "project". However, my headers (.h) and template implementation (.hpp) are not added to the project (I believe this is the same behavior as Visual Stud