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.
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