Feature-Request: hook, for functions to run at end of configure; and at end of each CMakeLists.txt
Hi,
I have a feature-wish:
- a hook-list-variable, that lists functions to run at the end of configure (see e.g. https://stackoverflow.com/a/15824843/10082476 )
- a hook-list-variable, that lists functions to run at the end of each CMakeLists.txt (but still within the context of that CMakeLists.txt, e.g. for
source_group()
on source-files extracted from targets of that directory, via property)
Example:
set(CMAKE_POST_CONFIGURE_HOOK func1 func2)
set(CMAKE_POST_DIR_HOOK func3) # func3 must have this signature: func3(source_dir)
Edited by user706