Allow adding project-specific install targets

If a project needs to install something that is very specific and not
in the general build, it can use this hook to setup additional targets.
This commit is contained in:
Roland Kaufmann 2013-08-14 21:16:55 +02:00
parent 15631d2ab1
commit 0f841e1bdf

View File

@ -179,6 +179,9 @@ opm_compile (${project})
# installation target: copy the library together with debug and
# configuration files to system directories
include (OpmInstall)
if (COMMAND install_hook)
install_hook ()
endif (COMMAND install_hook)
opm_install (${project})
message (STATUS "This build defaults to installing in ${CMAKE_INSTALL_PREFIX}")