[CMake] Precompiled Headers

Robert Dailey rcdailey at gmail.com
Sun Jun 7 17:53:26 EDT 2009


On Sat, Jun 6, 2009 at 11:22 PM, John Drescher <drescherjm at gmail.com> wrote:

> Here is what I do for Vs2005 builds and CMake 2.6.4
>
> I put this in the main CMakeLists.txt before any
> add_subdirectory(Libraries)
>
> <snip>
>
> You need to then create
>
> laGUIPCH.h
> laGUIPCH.cxx
>
> the .cxx file contains any headers that will be not changed often.
> This is the same as stdafx.cpp was and the .h file must be included in
> every cpp that is in the ${ProjectName}_SRCS list
>
>
> I hope this makes sense.


Thanks for your help. Do you (or anyone else) know if there are any plans to
make a dedicated function for this so it is cleaner and portable?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090607/d4524340/attachment.htm>


More information about the CMake mailing list