[CMake] [PATCh] Precompiled headers support for VC++ 7.x generator

speedy speedy at 3d-io.com
Mon Jul 10 00:35:19 EDT 2006


Hello Cmake crew,

      attached to the email is the patch for VC++ 7.x generator which
      adds proper(?) support for precompiled headers to generated
      .vcproj files.

      Usage is pretty straightforward:
      
# Create a library called "Hello" which includes the source file "hello.cxx".
# The extension is already found.  Any number of sources could be listed here.
add_library (Hello hello.cxx hello.h stdafx.cpp stdafx.h)

SET_TARGET_PROPERTIES(Hello PROPERTIES COMPILE_FLAGS "/Yu")

SET_SOURCE_FILES_PROPERTIES(stdafx.cpp COMPILE_FLAGS "/Yc")

      All comments and corrections are welcome. :)
      
-- 
Best regards,
 speedy                          mailto:speedy at 3d-io.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-2.4.2-precompiled_headers.diff
Type: application/octet-stream
Size: 2363 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060710/900fc169/cmake-2.4.2-precompiled_headers.obj


More information about the CMake mailing list