Merge pull request #602 from akva2/add_files_hook

added: hook for conditionally compiled files
This commit is contained in:
Bård Skaflestad 2014-06-16 14:53:20 +02:00
commit eb7c0eb75a
2 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,9 @@ endmacro (sources_hook)
macro (fortran_hook)
endmacro (fortran_hook)
macro (files_hook)
endmacro (files_hook)
macro (tests_hook)
cond_disable_test ("ERT")
endmacro (tests_hook)

View File

@ -13,6 +13,7 @@
# fortran_hook Determine whether Fortran support is necessary or not
# sources_hook Do special processing before sources are compiled
# tests_hook Do special processing before tests are compiled
# files_hook Do special processing before final targets are added
# include special
if (CMAKE_VERSION VERSION_LESS "2.8.3")
@ -108,6 +109,9 @@ include (UseDynamicBoost)
# needed for Debian installation scheme
include (UseMultiArch)
# Run conditional file hook
files_hook()
# this module contains code to figure out which files is where
include (OpmFiles)
opm_auto_dirs ()