[CMake] how to include a file that is under out-of-tree build directory
Maik Beckmann
beckmann.maik at googlemail.com
Fri Apr 11 01:09:11 EDT 2008
Am Freitag 11 April 2008 01:36:26 schrieb Jun Sun:
> I am staring to use cmake for an existing project.
>
> We generate a config.cmake file under current build directory. We like
> to include "config.cmake" in the in-tree CMakeLists.txt. cmake complains
> about not able to find "config.cmake".
>
> Can someone help?
>
> Here is the tree structure:
>
> src/
>
> +-- CMakeLists.txt ( include (config.cmake) )
+-- CMakeLists.txt ( include (${CMAKE_BINARY_DIR}/config.cmake) )
> ...
>
> build/
>
> +-- config.cmake
>
> Ceers.
>
> Jun
Best,
-- Maik
More information about the CMake
mailing list