mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Provide CMake find module to locate opm-verteq
This commit is contained in:
parent
166033ce1f
commit
188925f3cd
42
cmake/Modules/Findopm-verteq.cmake
Normal file
42
cmake/Modules/Findopm-verteq.cmake
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# - Find OPM vertical equilibrium library
|
||||||
|
#
|
||||||
|
# Defines the following variables:
|
||||||
|
# opm-verteq_INCLUDE_DIRS Directory of header files
|
||||||
|
# opm-verteq_LIBRARIES Directory of shared object files
|
||||||
|
# opm-verteq_DEFINITIONS Defines that must be set to compile
|
||||||
|
# opm-verteq_CONFIG_VARS List of defines that should be in config.h
|
||||||
|
# HAVE_OPM_VERTEQ 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-verteq"
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
"CXX11Features;
|
||||||
|
Boost 1.39.0
|
||||||
|
COMPONENTS system unit_test_framework REQUIRED;
|
||||||
|
"
|
||||||
|
# header to search for
|
||||||
|
"opm/verteq/verteq.hpp"
|
||||||
|
|
||||||
|
# library to search for
|
||||||
|
"opmverteq"
|
||||||
|
|
||||||
|
# defines to be added to compilations
|
||||||
|
""
|
||||||
|
|
||||||
|
# test program
|
||||||
|
"#include <opm/verteq/verteq.hpp>
|
||||||
|
int main (void) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
"
|
||||||
|
# config variables
|
||||||
|
"")
|
||||||
|
include (UseDynamicBoost)
|
||||||
|
#debug_find_vars ("opm-verteq")
|
Loading…
Reference in New Issue
Block a user