How do I add .cpp files to a project and have them visible in the project but not included in the compile? Basically I want the "Excluded From Build" flag to be set to "Yes". I want to do this for C++ Unity style builds.
views:
37answers:
1
+1
A:
Ok, it looks like I need to do something like this:
# Exclude all translation units from compilation
set_source_files_properties(${files} PROPERTIES HEADER_FILE_ONLY true)
My reference:
http://cheind.wordpress.com/2009/12/10/reducing-compilation-time-unity-builds/
Michael Kelley
2010-06-03 19:37:41