On 08/22/2010 05:21 PM, Claus Klein wrote: > 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?
See <http://www.mail-archive.com/cmake@cmake.org/msg16767.html> and <http://public.kitware.com/Bug/view.php?id=7845> for information. > 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. Try ".*\\.idl" instead of "*.idl" since the latter is a typical globbing expression but no valid regular expression for CMake. Regards, Michael > 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