[CMake] hook __EOF__

t m cmake at majchrowski.co.uk
Mon Aug 15 04:12:59 EDT 2011


Hi All,

I guess it's not commonly used feature. Does anyone who knows a code
of cmake a bit can provide information if that's possible at all?

Thanks, T Majchrowski.


2011/8/11 t m <cmake at majchrowski.co.uk>:
> Hi All,
>
> Is it possible to register hook function that will be called at the
> end of processinf of CMakeLists.txt:
> Example CMakeLists.txt
>
>
> 0:cmake_minimum_required( VERSION 2.6 )
> 1:project( foo.project)
> 2:
> 3: add_subdirectory( example )
> 4:
> ...
> N: <-- last line of CMakeLists.txt this will trigger to call other funcion.
>
>
> I mean something simillar like variable_watch but the trigger will be
> __EOF__ CMakeLists.txt file not a variable (e.g. eof_watch)
>


More information about the CMake mailing list