Hi, I try to generate preprocessed files with gcc (gcc -E) and ADD_CUSTOM_COMMAND. I use INCLUDE_DIRECTORIES in order to specify where the include files are but this has not effect and so gcc generates an error :
ADD_CUSTOM_COMMAND(OUTPUT hello.pp.c COMMAND ${CMAKE_C_COMPILER} -E hello.c > hello.pp.c MAIN_DEPENDENCY hello.pp.c) hello.c : #include <iostream.h> #include "hello.h" void main() { std::cout << "Hello !<< std::endl; } ...and I don't want to add include file in ADD_CUSTOM_COMMAND... Any idea ? Thanks for help. Sébastien ____________________________________________________ Écoutez gratuitement Amy Winehouse sur Voila et découvrez d'autres titres en affinité avec vos goûts musicaux ! http://musiline.voila.fr/resume/3599
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake