Skip to content
Snippets Groups Projects
Commit e870115f authored by Markus Blatt's avatar Markus Blatt
Browse files

Allow module to add customized sections to package configuration files

If the module sets the variable @${ProjectName}_INIT then the contents
will be added to the package configuration files.
parent 6c71fff1
No related branches found
No related tags found
1 merge request!94Allow modules to customize cmake package configuration files
......@@ -12,7 +12,9 @@
# .. cmake_function:: finalize_dune_project
#
# Finalize a Dune module. This function needs to be run at the end of
# every top-level CMakeLists.txt file.
# every top-level CMakeLists.txt file. Among other things it creates
# the cmake package configuration files. Modules can add additional
# entries to these files by setting the variable @${ProjectName}_INIT.
#
# .. cmake_function:: dune_add_library
#
......@@ -823,6 +825,10 @@ macro(finalize_dune_project)
"if(NOT ${ProjectName}_FOUND)
# Whether this module is installed or not
set(${ProjectName}_INSTALLED @MODULE_INSTALLED@)
# Settings specific to the module
@${ProjectName}_INIT@
# Package initialization
@PACKAGE_INIT@
#report other information
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment