[CMake] Adding unused files to the generated project

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Sun Sep 22 16:07:31 EDT 2013


Hi Lucas,

You could use the "source_group" command. See
http://www.cmake.org/cmake/help/v2.8.11/cmake.html#command:source_group

For example of usage, see [1]

Hth
Jc

[1]
https://github.com/commontk/CTK/blob/dcf7db15f2b43507395316dd680dba5999f886b4/CMake/ctkMacroBuildLib.cmake#L117-127


On Sun, Sep 22, 2013 at 11:25 AM, Lucas Soltic <lucas.soltic at orange.fr>wrote:

> Hello,
>
> Is it possible to add files that do not belong to any
> add_executable/library so that they're visible in the IDE but not used for
> building?
> That way I could easily work with the generated project on any useful
> file, even if it's not directly used to produce binaries (for example,
> editing CMakeLists.txt from the IDE).
>
> Regards,
> Lucas
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130922/40242af5/attachment.htm>


More information about the CMake mailing list