[CMake] exporting variables upwards
Reinhold
reinholdsw at gmx.at
Mon May 12 04:41:02 EDT 2008
Hi Mattias,
AFAIK there are 2 possibilities:
(a) Using PARENT_SCOPE flag in SET of variable definition
(b) Using GLOBAL scope for properties, cf. DEFINE_PROPERTY,
GET_PROPERTY, SET_PROPERTY
HTH Reinhold
> -----Original Message-----
> From: cmake-bounces at cmake.org
> [mailto:cmake-bounces at cmake.org] On Behalf Of Mattias Holm
> Sent: Monday, May 12, 2008 8:23 AM
> To: cmake at cmake.org
> Subject: [CMake] exporting variables upwards
>
>
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list