[CMake] How to add CORBA idl files to Visual Studio source group
Claus Klein
claus.klein at arcormail.de
Sun Aug 22 11:21:08 EDT 2010
Ok,
I found the solution myself; I have to add:
set_source_files_properties(interface1.idl PROPERTIES HEADER_FILE_ONLY
TRUE)
But I do not understand why this is needed with VS2005?
By the way, the REGULAR_EXPRESSION does not work?
I have to use the FILES parameter to group the idl files!
That is really strange.
Claus
On 19.08.2010, at 22:59, Claus Klein wrote:
> Hi,
>
> I have a project with CORBA idl files, which will be compiled with a
> tao idl compiler to source and header files via a:
>
> add_custom_command(OUTPUT output1 [output2 ...] ...)
>
> I defined a source group with:
>
> source_group(idlfiles REGULAR_EXPRESSION *.idl)
>
> The generated source are added with ohter source to build libs and
> executables for different subsystems:
>
> add_library(interfacelib1 interface1.idl interface1C.cpp .... ).
>
> I add the idl files too. The idlfiles group was filled with my idl
> files. OK, that was my intention.
> That works with header files, but not with idl files:
>
> When I compile the project, there are build error because the VS2005
> does not know who to compile the .idl files?
>
> All works fine without the idl file in the source list of the libs.
> But can't see the idl file in the VS project.
>
> Is there an other way to get the idl files to a source group under
> there library projects?
>
>
> //regards
> Claus
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100822/0838df0a/attachment.htm>
More information about the CMake
mailing list