[CMake] hook __EOF__

t m cmake at majchrowski.co.uk
Thu Aug 11 11:48:28 EDT 2011


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