mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Module mode CMake probe for opm-material
This commit is contained in:
44
cmake/Modules/Findopm-material.cmake
Normal file
44
cmake/Modules/Findopm-material.cmake
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# - Find OPM materials library
|
||||||
|
#
|
||||||
|
# Defines the following variables:
|
||||||
|
# opm-material_INCLUDE_DIRS Directory of header files
|
||||||
|
# opm-material_LIBRARIES Directory of shared object files
|
||||||
|
# opm-material_DEFINITIONS Defines that must be set to compile
|
||||||
|
# opm-material_CONFIG_VARS List of defines that should be in config.h
|
||||||
|
# HAVE_OPM_MATERIAL Binary value to use in config.h
|
||||||
|
|
||||||
|
# Copyright (C) 2013 Uni Research AS
|
||||||
|
# This code is licensed under The GNU General Public License v3.0
|
||||||
|
|
||||||
|
# use the generic find routine
|
||||||
|
include (OpmPackage)
|
||||||
|
find_opm_package (
|
||||||
|
# module name
|
||||||
|
"opm-material"
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
"C99;
|
||||||
|
CXX11Features
|
||||||
|
"
|
||||||
|
# header to search for
|
||||||
|
"opm/material/constants.hh"
|
||||||
|
|
||||||
|
# library to search for
|
||||||
|
""
|
||||||
|
|
||||||
|
# defines to be added to compilations
|
||||||
|
""
|
||||||
|
|
||||||
|
# test program
|
||||||
|
"#include <opm/material/constants.hh>
|
||||||
|
int main (void) {
|
||||||
|
double c = Opm::Constants<double>::c;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
"
|
||||||
|
# config variables
|
||||||
|
"HAVE_MPI;
|
||||||
|
HAVE_VALGRIND
|
||||||
|
")
|
||||||
|
include (UseDynamicBoost)
|
||||||
|
#debug_find_vars ("opm-material")
|
||||||
Reference in New Issue
Block a user