This commit brings the system probe for module opm-flowdiagnostics up-to-date with recent changes in the public interface of the module's main entry point. Commit OPM/opm-flowdiagnostics@8456e81 removed the nested type Opm::FlowDiagnostics::Toolbox::PoreVolume so we must drop all references to this type.
49 lines
1.1 KiB
CMake
49 lines
1.1 KiB
CMake
# - Find OPM Flow Diagnostics Library
|
|
#
|
|
# Defines the following variables:
|
|
# opm-flowdiagnostics_INCLUDE_DIRS Directory of header files
|
|
# opm-flowdiagnostics_LIBRARIES Directory of shared object files
|
|
# opm-flowdiagnostics_DEFINITIONS Defines that must be set to compile
|
|
# opm-flowdiagnostics_CONFIG_VARS List of defines that should be in config.h
|
|
# HAVE_OPM_FLOWDIAGNOSTICS Binary value to use in config.h
|
|
|
|
# Copyright (C) 2012 Uni Research AS
|
|
# This code is licensed under The GNU General Public License v3.0
|
|
|
|
# use the generic find routine
|
|
include (opm-flowdiagnostics-prereqs)
|
|
|
|
include (OpmPackage)
|
|
|
|
find_opm_package (
|
|
# module name
|
|
"opm-flowdiagnostics"
|
|
|
|
# dependencies
|
|
"${opm-flowdiagnostics_DEPS}"
|
|
|
|
# header to search for
|
|
"opm/flowdiagnostics/Toolbox.hpp"
|
|
|
|
# library to search for
|
|
"opmflowdiagnostics"
|
|
|
|
# defines to be added to compilations
|
|
""
|
|
|
|
# test program
|
|
"#include <opm/flowdiagnostics/Toolbox.hpp>
|
|
|
|
#include <vector>
|
|
|
|
int main()
|
|
{
|
|
using FDT = Opm::FlowDiagnostics::Toolbox;
|
|
|
|
const auto pv = std::vector<double>(10, 0.3);
|
|
}
|
|
"
|
|
# config variables
|
|
"${opm-flowdiagnostics_CONFIG_VAR}"
|
|
)
|