[CMake] Add sources to a target library after add_library()?

Loaden loaden at gmail.com
Wed Sep 5 18:30:51 EDT 2012


Hi, I look this ML:
http://www.cmake.org/pipermail/cmake/2010-January/034437.html
Does CMake still can't support how to add sources to a target library after
add_library()?
I wan't support Precompiled Header for both MSVC / GCC(MinGW).
In MSVC case, it need a source, e.g. StdAfx.cpp to support PCH.
But in GCC case, it only need a header, e.g. pch.h
Any help or comments or tips are best welcome!
See: https://codereview.qt-project.org/#change,34052

-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120906/eba1ff93/attachment.htm>


More information about the CMake mailing list