forked from OPM/opm-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopm-common-prereqs.cmake
More file actions
25 lines (20 loc) · 883 Bytes
/
Copy pathopm-common-prereqs.cmake
File metadata and controls
25 lines (20 loc) · 883 Bytes
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
# -*- mode: cmake; tab-width: 2; indent-tabs-mode: nil; truncate-lines: t; compile-command: "cmake -Wdev" -*-
# vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 expandtab softtabstop=2 nowrap:
find_package(Boost REQUIRED)
find_package(cJSON)
find_package(fmt)
find_package(QuadMath)
if(TARGET opmcommon)
get_property(opm-common_EMBEDDED_PYTHON TARGET opmcommon PROPERTY EMBEDDED_PYTHON)
get_property(opm-common_COMPILE_DEFINITIONS TARGET opmcommon PROPERTY INTERFACE_COMPILE_DEFINITIONS)
get_property(opm-common_LIBS TARGET opmcommon PROPERTY INTERFACE_LINK_LIBRARIES)
if(opm-common_EMBEDDED_PYTHON)
find_package(Python3 COMPONENTS Development.Embed REQUIRED)
endif()
if(opm-common_LIBS MATCHES dunecommon)
find_package(dune-common REQUIRED)
endif()
if(opm-common_LIBS MATCHES OpenMP::OpenMP)
find_package(OpenMP REQUIRED)
endif()
endif()