[CMake] How to include config.h.in in VS project

Roman Wüger roman.wueger at gmx.at
Thu Dec 31 12:53:40 EST 2015


Hi,

You must add those sources to add_executable/add_library as well.

Wish you a happy new year.

Best regards 
Roman

> Am 29.12.2015 um 09:53 schrieb Mauro Ziliani <mauro.ziliani.tmp at gmail.com>:
> 
> Hi all.
> I'm using CMake 3.4.1 for my projects.
> I'm working with Visual studio 10 2010 express and wxFormBuilder 
> I'd like to include config.h.in and the wxFormBuilder projects (which has .fbp extension) in source_group.
> 
> In CMakeLists.txt i put
> 
> ...
> 
> source_group("FormBiulder FBP" FILES main.fbp)
> source_group("Config IN" FILES config.h.in)
> 
> But when I generate the final solution for visual studio the tree project has not the group I define.
> 
> It seems the problem is the extestion .fbp or .in. that Cmake ignores
> 
> How can I include .in e .fbp extensions has wel-known extension to put in the vcxproject list?
> 
> Best regards, 
>    Mauro
> -- 
> 
> 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://public.kitware.com/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151231/326263e1/attachment.html>


More information about the CMake mailing list