[CMake] Can CMake intelligently support GCC "-include" directive

2015-12-17 Thread Richard Lang
Posted same question on stack overflow (http://stackoverflow.com/questions/34296887/can-cmake-intelligently-support-gcc-include-directive?noredirect=1#comment56386884_34296887) and got the suggestion that I use add_definitions() to pass the preprocessor defines from the preinclude file to cmake.

[CMake] Can CMake intelligently support GCC "-include" directive

2015-12-14 Thread Richard Lang
Hi all, Porting a collection of IAR Embedded Workbench projects to CMake/GCC. The IAR projects make use of "preinclude headers" (header files that are automatically included in every source file in the project without being explicitly pulled in with a #include statement - not to be confused with