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.
I used target_compile_definitions() (rather than add_definitions(), as my CMakeList.txt is not in the workspace root) and while the defines in question are correctly included in the "C" build, there is no sign of them in the Eclipse .project/.cproject files and I am no closer to an Eclipse CDT Indexer configured ready-to-go from the CMake project generation. Is this a CMake bug/omission? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
