[CMake] custom command and differences between VS2005 and VS2010

walter.schwarz at dzbank.de walter.schwarz at dzbank.de
Mon Feb 20 06:37:21 EST 2012


our project contains a directory with config files. to make the config 
files (and other externally supplied header files) visible in the visual 
studio solution, the custom command shown below was specified in the 
directory.

this worked well with the generator for Visual Studio 2005. it doesn't any 
more with the generator for visual studio 2010.

- is this intentional or is it a bug?
- what can i do to fix this?

/regards   Walter Schwarz


# Targets: none - placeholder for Murex headers
# 
----------------------------------------------------------------------------
# Library: none
# 
----------------------------------------------------------------------------

set( etc_hdrs
      ${FLEX_INCLUDE_DIRS}/mdtypes.h
      ... list shortened ...
)

set( etc_srcs FlexModelConfig.cfg configFile.txt )

include_directories(
        ${FLEX_INCLUDE_DIRS} 
)

add_custom_target( etc SOURCES ${etc_hdrs} ${etc_srcs} )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120220/99dce5cd/attachment.htm>


More information about the CMake mailing list