I'm looking for the good way to add the build directory (which is different from my source directory, a git repository) to the include path for gcc, in order to have the classic "config.h" file for portability seen during the compilation.
No I found myself what I was looking for, it was a cmake variable. Thx anyway +1.
claferri
2009-02-19 19:46:40
+5
A:
I was looking for
include_directories (${CMAKE_BINARY_DIR})
To add the build directory in case of out-of-source build.
claferri
2009-02-19 19:44:55