Re: [CMake] Adding unused files to the generated project

2013-09-23 Thread Alexander Neundorf
On Sunday 22 September 2013, Lucas Soltic 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).

What IDE/generator are you using ?
The CMakeLists.txt etc. are added by some generators, but probably not by all. 
But it should be possible to do.

Alex
--

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


[CMake] Adding unused files to the generated project

2013-09-22 Thread Lucas Soltic
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


Re: [CMake] Adding unused files to the generated project

2013-09-22 Thread Jean-Christophe Fillion-Robin
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.sol...@orange.frwrote:

 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
--

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