mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-20 11:48:25 -06:00
Note that the variable containing the dependencies must be expanded inside quotes; otherwise the list will spill into the argument list!
43 lines
997 B
CMake
43 lines
997 B
CMake
# - Find OPM polymer library
|
|
#
|
|
# Defines the following variables:
|
|
# opm-polymer_INCLUDE_DIRS Directory of header files
|
|
# opm-polymer_LIBRARIES Directory of shared object files
|
|
# opm-polymer_DEFINITIONS Defines that must be set to compile
|
|
# opm-polymer_CONFIG_VARS List of defines that should be in config.h
|
|
# HAVE_OPM_POLYMER 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
|
|
|
|
include (opm-polymer-prereqs)
|
|
include (OpmPackage)
|
|
find_opm_package (
|
|
# module name
|
|
"opm-polymer"
|
|
|
|
# dependencies
|
|
"${opm-polymer_DEPS}"
|
|
|
|
# header to search for
|
|
"opm/polymer/PolymerState.hpp"
|
|
|
|
# library to search for
|
|
"opmpolymer"
|
|
|
|
# defines to be added to compilations
|
|
""
|
|
|
|
# test program
|
|
"#include <opm/polymer/PolymerState.hpp>
|
|
int main (void) {
|
|
Opm::PolymerState s;
|
|
return 0;
|
|
}
|
|
"
|
|
# config variables
|
|
"${opm-polymer_CONFIG_VAR}"
|
|
)
|
|
|
|
#debug_find_vars ("opm-polymer")
|