[CMake] exporting variables upwards

Mattias Holm mattias.holm at contra.nu
Mon May 12 03:23:24 EDT 2008


Hi,

I have a project structured as follows:

xyz/
CMakeLists.txt
src/
   CMakeLists.txt
rsrc/
   CMakeLists.txt
include/
   CMakeLists.txt


Now, if I in the rsrc directory locate a bunch of files and set these  
as variables, they will not be seen by the other CMakeLists, is there  
any way to overcome this? I.e so that the rsrc/CMakeLists can set the  
variable TEXTURES (and also properties on the files in that variable)  
that will be picked up by the src/CMakeList and added to a target in  
that file.


Thanks,
Mattias


More information about the CMake mailing list