[CMake] Excluded from build

Michael Wild themiwi at gmail.com
Wed Oct 13 05:04:35 EDT 2010


On 13. Oct, 2010, at 10:52 , Andrea Galeazzi wrote:

> Does CMake allow to exclude from build some files but include them in the list of project like Visual Studio or NetBeans?
> Cheers

Try this:

set_source_files_properties(src1.c src2.c src3.c PROPERTIES
  HEADER_FILE_ONLY TRUE)

Michael

--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101013/154315c5/attachment.pgp>


More information about the CMake mailing list