> 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 MyProject.h) It does do the trick for QtCreator. Thanks, David -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
