[CMake] Precompiled headers
Rodolfo Lima
rodolfo at rodsoft.org
Tue May 6 10:06:07 EDT 2008
Anders Backman escreveu:
> So is there are portable way of handling this in cmake?
I've been using the attached script and it has been working nicely for
my needs.
The usage is:
include(PCHSupport)
add_executable(test test.cpp pch.h)
ADD_PRECOMPILED_HEADER(test pch.h)
I'm using it with gcc, but it should work with MS Visual Studio too.
Regards,
rod
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PCHSupport.cmake
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080506/54ca7e3e/attachment-0001.asc>
More information about the CMake
mailing list