fix the default build system

for some reason, libraries produced for a module are not linked to the
executables of the module by the default build system. so far this did
not matter for `ebos` but with this PR, it starts using stuff from
`libopmsimulators`...
This commit is contained in:
Andreas Lauser 2019-03-04 15:38:07 +01:00
parent d9c67ef551
commit f4435a5de9

View File

@ -154,9 +154,12 @@ set_tests_properties(flow__version PROPERTIES
# the research oriented general-purpose ECL simulator ("ebos" == &ecl # the research oriented general-purpose ECL simulator ("ebos" == &ecl
# &black-&oil &simulator) # &black-&oil &simulator)
opm_add_test(ebos opm_add_test(ebos
SOURCES ebos/ebos.cc ONLY_COMPILE
ALWAYS_ENABLE
EXE_NAME ebos EXE_NAME ebos
ONLY_COMPILE) DEPENDS "opmsimulators"
LIBRARIES "opmsimulators"
SOURCES ebos/ebos.cc)
if(OPM_GRID_FOUND AND HAVE_ECL_INPUT AND HAVE_ECL_OUTPUT) if(OPM_GRID_FOUND AND HAVE_ECL_INPUT AND HAVE_ECL_OUTPUT)
install(TARGETS ebos DESTINATION bin) install(TARGETS ebos DESTINATION bin)