opm-upscaling/opm-upscaling-prereqs.cmake
2018-08-20 16:04:28 +02:00

35 lines
831 B
CMake

# defines that must be present in config.h for our headers
set (opm-upscaling_CONFIG_VAR
HAVE_SUPERLU
HAVE_OPENMP
)
# dependencies
set (opm-upscaling_DEPS
# compile with C99 support if available
"C99"
# compile with C++0x/11 support if available
"CXX11Features"
# various runtime library enhancements
"Boost 1.44.0
COMPONENTS date_time filesystem system iostreams unit_test_framework REQUIRED"
# matrix library
"BLAS REQUIRED"
"LAPACK REQUIRED"
# solver
"SuperLU"
# DUNE dependency
"dune-common REQUIRED"
"dune-istl REQUIRED"
"dune-geometry REQUIRED"
"dune-grid REQUIRED"
"opm-common REQUIRED"
"opm-grid REQUIRED"
)
find_package_deps(opm-upscaling)
if(NOT HAVE_ECL_INPUT OR NOT HAVE_ECL_OUTPUT)
message(FATAL_ERROR "Eclipse input/output support required in opm-common")
endif()