added: hook for conditionally compiled files

backport from opm-upscaling PR#100
This commit is contained in:
Arne Morten Kvarving 2014-06-16 14:40:52 +02:00
parent eed5892e98
commit 457ea2c44f
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 ()