File: Finddune-localfunctions.cmake

package info (click to toggle)
opm-common 2022.10%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,468 kB
  • sloc: cpp: 164,554; python: 2,872; sh: 216; xml: 174; ansic: 149; pascal: 136; makefile: 12
file content (42 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# - Find DUNE localfunctions library
#
# Defines the following variables:
#   dune-localfunctions_INCLUDE_DIRS      Directory of header files
#   dune-localfunctions_LIBRARIES         Directory of shared object files
#   dune-localfunctions_DEFINITIONS       Defines that must be set to compile
#   dune-localfunctions_CONFIG_VARS       List of defines that should be in config.h
#   HAVE_DUNE_LOCALFUNCTIONS              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

include (OpmPackage)
find_opm_package (
  # module name
  "dune-localfunctions"

  # required dependencies
  "dune-common REQUIRED"
  # header to search for
  "dune/localfunctions/common/localbasis.hh"

  # library to search for
  ""

  # defines to be added to compilations
  ""

  # test program
"#include   <dune/localfunctions/common/localbasis.hh>

int main (void) {
  return 0;
}
"
  # config variables
  "")
#debug_find_vars ("dune-localfunctions")

# make version number available in config.h
include (UseDuneVer)
find_dune_version ("dune" "localfunctions")