[CMake] files used in source_group must be listed in add_library or add_executable

elizabeta petreska elizabeta.petreska at gmail.com
Mon Apr 6 05:40:32 EDT 2009


Hello
I am trying to group my files( which are not .cpp or .h ) under visual
studio folder.
I am using these files as input to custom command which produces output used
in custom target.
I am doing the following :

SOURCE_GROUP("Matlab files"
  FILES ${My_Matlab_Files})

This is not working, so I assume that only files listed in add_library or
add_executable can be be grouped in visual studio folders. Is this correct?
is there any workaround?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090406/7d70b8eb/attachment.htm>


More information about the CMake mailing list