mmgpy 0.1.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mmgpy might be problematic. Click here for more details.
- bin/concrt140.dll +0 -0
- bin/mmg.dll +0 -0
- bin/mmg2d.dll +0 -0
- bin/mmg2d.exe +0 -0
- bin/mmg3d.dll +0 -0
- bin/mmg3d.exe +0 -0
- bin/mmgs.dll +0 -0
- bin/mmgs.exe +0 -0
- bin/msvcp140.dll +0 -0
- bin/msvcp140_1.dll +0 -0
- bin/msvcp140_2.dll +0 -0
- bin/msvcp140_atomic_wait.dll +0 -0
- bin/msvcp140_codecvt_ids.dll +0 -0
- bin/vcruntime140.dll +0 -0
- bin/vcruntime140_1.dll +0 -0
- include/mmg/common/libmmgtypes.h +687 -0
- include/mmg/common/libmmgtypesf.h +762 -0
- include/mmg/common/mmg_export.h +47 -0
- include/mmg/common/mmgcmakedefines.h +46 -0
- include/mmg/common/mmgcmakedefinesf.h +29 -0
- include/mmg/common/mmgversion.h +54 -0
- include/mmg/libmmg.h +67 -0
- include/mmg/libmmgf.h +42 -0
- include/mmg/mmg2d/libmmg2d.h +2761 -0
- include/mmg/mmg2d/libmmg2df.h +3263 -0
- include/mmg/mmg2d/mmg2d_export.h +34 -0
- include/mmg/mmg3d/libmmg3d.h +3444 -0
- include/mmg/mmg3d/libmmg3df.h +4041 -0
- include/mmg/mmg3d/mmg3d_export.h +34 -0
- include/mmg/mmgs/libmmgs.h +2560 -0
- include/mmg/mmgs/libmmgsf.h +3028 -0
- include/mmg/mmgs/mmgs_export.h +34 -0
- lib/cmake/mmg/FindElas.cmake +57 -0
- lib/cmake/mmg/FindSCOTCH.cmake +373 -0
- lib/cmake/mmg/MmgTargets-release.cmake +49 -0
- lib/cmake/mmg/MmgTargets.cmake +127 -0
- lib/cmake/mmg/mmgConfig.cmake +43 -0
- lib/mmg.lib +0 -0
- lib/mmg2d.lib +0 -0
- lib/mmg3d.lib +0 -0
- lib/mmgs.lib +0 -0
- mmgpy/__init__.py +3 -0
- mmgpy/_mmgpy.cp313-win_amd64.pyd +0 -0
- mmgpy/_mmgpy.pyi +31 -0
- mmgpy/_version.py.in +4 -0
- mmgpy/mmg2d.dll +0 -0
- mmgpy/mmg2d.lib +0 -0
- mmgpy/mmg3d.dll +0 -0
- mmgpy/mmg3d.lib +0 -0
- mmgpy/mmgs.dll +0 -0
- mmgpy/mmgs.lib +0 -0
- mmgpy/py.typed +0 -0
- mmgpy-0.1.0.data/scripts/mmg2d.dll +0 -0
- mmgpy-0.1.0.data/scripts/mmg2d.exe +0 -0
- mmgpy-0.1.0.data/scripts/mmg2d.lib +0 -0
- mmgpy-0.1.0.data/scripts/mmg3d.dll +0 -0
- mmgpy-0.1.0.data/scripts/mmg3d.exe +0 -0
- mmgpy-0.1.0.data/scripts/mmg3d.lib +0 -0
- mmgpy-0.1.0.data/scripts/mmgs.dll +0 -0
- mmgpy-0.1.0.data/scripts/mmgs.exe +0 -0
- mmgpy-0.1.0.data/scripts/mmgs.lib +0 -0
- mmgpy-0.1.0.dist-info/METADATA +52 -0
- mmgpy-0.1.0.dist-info/RECORD +68 -0
- mmgpy-0.1.0.dist-info/WHEEL +5 -0
- mmgpy-0.1.0.dist-info/licenses/LICENSE +19 -0
- share/man/man1/mmg2d.1.gz +0 -0
- share/man/man1/mmg3d.1.gz +0 -0
- share/man/man1/mmgs.1.gz +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* =============================================================================
|
|
2
|
+
** This file is part of the mmg software package for the tetrahedral
|
|
3
|
+
** mesh modification.
|
|
4
|
+
** Copyright (c) Bx INP/CNRS/Inria/UBordeaux/UPMC, 2004-
|
|
5
|
+
**
|
|
6
|
+
** mmg is free software: you can redistribute it and/or modify it
|
|
7
|
+
** under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
** by the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
** (at your option) any later version.
|
|
10
|
+
**
|
|
11
|
+
** mmg is distributed in the hope that it will be useful, but WITHOUT
|
|
12
|
+
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13
|
+
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
14
|
+
** License for more details.
|
|
15
|
+
**
|
|
16
|
+
** You should have received a copy of the GNU Lesser General Public
|
|
17
|
+
** License and of the GNU General Public License along with mmg (in
|
|
18
|
+
** files COPYING.LESSER and COPYING). If not, see
|
|
19
|
+
** <http://www.gnu.org/licenses/>. Please read their terms carefully and
|
|
20
|
+
** use this copy of the mmg distribution only if you accept them.
|
|
21
|
+
** =============================================================================
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
#ifndef MMGS_EXPORT_H
|
|
25
|
+
#define MMGS_EXPORT_H
|
|
26
|
+
|
|
27
|
+
#include "mmg/common/mmg_export.h"
|
|
28
|
+
#if defined(libmmg_so_EXPORTS) || defined(libmmgs_so_EXPORTS)
|
|
29
|
+
# define LIBMMGS_EXPORT MMG_DECL_EXPORT
|
|
30
|
+
#else
|
|
31
|
+
# define LIBMMGS_EXPORT MMG_DECL_IMPORT
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#endif
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
## =============================================================================
|
|
2
|
+
## This file is part of the mmg software package for the tetrahedral
|
|
3
|
+
## mesh modification.
|
|
4
|
+
##** Copyright (c) Bx INP/Inria/UBordeaux/UPMC, 2004- .
|
|
5
|
+
##
|
|
6
|
+
## mmg is free software: you can redistribute it and/or modify it
|
|
7
|
+
## under the terms of the GNU Lesser General Public License as published
|
|
8
|
+
## by the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
## (at your option) any later version.
|
|
10
|
+
##
|
|
11
|
+
## mmg is distributed in the hope that it will be useful, but WITHOUT
|
|
12
|
+
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13
|
+
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
14
|
+
## License for more details.
|
|
15
|
+
##
|
|
16
|
+
## You should have received a copy of the GNU Lesser General Public
|
|
17
|
+
## License and of the GNU General Public License along with mmg (in
|
|
18
|
+
## files COPYING.LESSER and COPYING). If not, see
|
|
19
|
+
## <http://www.gnu.org/licenses/>. Please read their terms carefully and
|
|
20
|
+
## use this copy of the mmg distribution only if you accept them.
|
|
21
|
+
## =============================================================================
|
|
22
|
+
|
|
23
|
+
IF ((NOT WIN32) AND (NOT WIN64))
|
|
24
|
+
SET ( ELAS_INCLUDE_DIR ELAS_INCLUDE_DIR-NOTFOUND )
|
|
25
|
+
SET ( ELAS_LIBRARY ELAS_LIBRARY-NOTFOUND )
|
|
26
|
+
ENDIF()
|
|
27
|
+
|
|
28
|
+
FIND_PATH(ELAS_INCLUDE_DIR
|
|
29
|
+
NAMES elastic.h
|
|
30
|
+
HINTS ${ELAS_INCLUDE_DIR}
|
|
31
|
+
$ENV{ELAS_INCLUDE_DIR}
|
|
32
|
+
$ENV{HOME}/include
|
|
33
|
+
${ELAS_DIR}/include
|
|
34
|
+
$ENV{ELAS_DIR}/include
|
|
35
|
+
${ELAS_DIR}/sources
|
|
36
|
+
$ENV{ELAS_DIR}/sources
|
|
37
|
+
PATH_SUFFIXES ELAS
|
|
38
|
+
DOC "Directory of ELAS Header")
|
|
39
|
+
|
|
40
|
+
# Check for elas library (search in common locations in order to prevent
|
|
41
|
+
# modifications in ELAS installation)
|
|
42
|
+
FIND_LIBRARY(ELAS_LIBRARY
|
|
43
|
+
NAMES Elas Elas${ELAS_LIB_SUFFIX}
|
|
44
|
+
HINTS ${ELAS_LIBRARY}
|
|
45
|
+
$ENV{ELAS_LIBRARY}
|
|
46
|
+
$ENV{HOME}/lib
|
|
47
|
+
${ELAS_DIR}/lib
|
|
48
|
+
$ENV{ELAS_DIR}/lib
|
|
49
|
+
DOC "The ELAS library"
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
INCLUDE(FindPackageHandleStandardArgs)
|
|
53
|
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ELAS DEFAULT_MSG
|
|
54
|
+
ELAS_INCLUDE_DIR ELAS_LIBRARY)
|
|
55
|
+
IF ((NOT WIN32) AND (NOT WIN64))
|
|
56
|
+
MARK_AS_ADVANCED(ELAS_INCLUDE_DIR ELAS_LIBRARY)
|
|
57
|
+
ENDIF()
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
###
|
|
2
|
+
#
|
|
3
|
+
# @copyright (c) 2009-2014 The University of Tennessee and The University
|
|
4
|
+
# of Tennessee Research Foundation.
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
# @copyright (c) 2012-2014 Inria. All rights reserved.
|
|
7
|
+
# @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
|
|
8
|
+
#
|
|
9
|
+
###
|
|
10
|
+
#
|
|
11
|
+
# - Find SCOTCH include dirs and libraries
|
|
12
|
+
# Use this module by invoking find_package with the form:
|
|
13
|
+
# find_package(SCOTCH
|
|
14
|
+
# [REQUIRED] # Fail with error if scotch is not found
|
|
15
|
+
# [COMPONENTS <comp1> <comp2> ...] # dependencies
|
|
16
|
+
# )
|
|
17
|
+
#
|
|
18
|
+
# COMPONENTS can be some of the following:
|
|
19
|
+
# - ESMUMPS: to activate detection of Scotch with the esmumps interface
|
|
20
|
+
#
|
|
21
|
+
# This module finds headers and scotch library.
|
|
22
|
+
# Results are reported in variables:
|
|
23
|
+
# SCOTCH_FOUND - True if headers and requested libraries were found
|
|
24
|
+
# SCOTCH_INCLUDE_DIRS - scotch include directories
|
|
25
|
+
# SCOTCH_LIBRARY_DIRS - Link directories for scotch libraries
|
|
26
|
+
# SCOTCH_LIBRARIES - scotch component libraries to be linked
|
|
27
|
+
# SCOTCH_INTSIZE - Number of octets occupied by a SCOTCH_Num
|
|
28
|
+
#
|
|
29
|
+
# The user can give specific paths where to find the libraries adding cmake
|
|
30
|
+
# options at configure (ex: cmake path/to/project -DSCOTCH=path/to/scotch):
|
|
31
|
+
# SCOTCH_DIR - Where to find the base directory of scotch
|
|
32
|
+
# SCOTCH_INCDIR - Where to find the header files
|
|
33
|
+
# SCOTCH_LIBDIR - Where to find the library files
|
|
34
|
+
# The module can also look for the following environment variables if paths
|
|
35
|
+
# are not given as cmake variable: SCOTCH_DIR, SCOTCH_INCDIR, SCOTCH_LIBDIR
|
|
36
|
+
|
|
37
|
+
#=============================================================================
|
|
38
|
+
# Copyright 2012-2013 Inria
|
|
39
|
+
# Copyright 2012-2013 Emmanuel Agullo
|
|
40
|
+
# Copyright 2012-2013 Mathieu Faverge
|
|
41
|
+
# Copyright 2012 Cedric Castagnede
|
|
42
|
+
# Copyright 2013 Florent Pruvost
|
|
43
|
+
#
|
|
44
|
+
# Distributed under the OSI-approved BSD License (the "License");
|
|
45
|
+
# see accompanying file MORSE-Copyright.txt for details.
|
|
46
|
+
#
|
|
47
|
+
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
48
|
+
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
49
|
+
# See the License for more information.
|
|
50
|
+
#=============================================================================
|
|
51
|
+
# (To distribute this file outside of Morse, substitute the full
|
|
52
|
+
# License text for the above reference.)
|
|
53
|
+
|
|
54
|
+
set(CMAKE_REQUIRED_QUIET SCOTCH_FIND_QUIETLY)
|
|
55
|
+
|
|
56
|
+
if (NOT SCOTCH_FOUND)
|
|
57
|
+
set(SCOTCH_DIR "" CACHE PATH "Installation directory of SCOTCH library")
|
|
58
|
+
if (NOT SCOTCH_FIND_QUIETLY)
|
|
59
|
+
message(STATUS "A cache variable, namely SCOTCH_DIR, has been set to specify the install directory of SCOTCH")
|
|
60
|
+
endif()
|
|
61
|
+
endif()
|
|
62
|
+
|
|
63
|
+
# Set the version to find
|
|
64
|
+
set(SCOTCH_LOOK_FOR_ESMUMPS OFF)
|
|
65
|
+
|
|
66
|
+
if( SCOTCH_FIND_COMPONENTS )
|
|
67
|
+
foreach( component ${SCOTCH_FIND_COMPONENTS} )
|
|
68
|
+
if (${component} STREQUAL "ESMUMPS")
|
|
69
|
+
# means we look for esmumps library
|
|
70
|
+
set(SCOTCH_LOOK_FOR_ESMUMPS ON)
|
|
71
|
+
endif()
|
|
72
|
+
endforeach()
|
|
73
|
+
endif()
|
|
74
|
+
|
|
75
|
+
# SCOTCH may depend on Threads, try to find it
|
|
76
|
+
if (NOT THREADS_FOUND)
|
|
77
|
+
if (SCOTCH_FIND_REQUIRED)
|
|
78
|
+
find_package(Threads REQUIRED)
|
|
79
|
+
else()
|
|
80
|
+
find_package(Threads)
|
|
81
|
+
endif()
|
|
82
|
+
endif()
|
|
83
|
+
|
|
84
|
+
# Looking for include
|
|
85
|
+
# -------------------
|
|
86
|
+
|
|
87
|
+
# Add system include paths to search include
|
|
88
|
+
# ------------------------------------------
|
|
89
|
+
unset(_inc_env)
|
|
90
|
+
set(ENV_SCOTCH_DIR "$ENV{SCOTCH_DIR}")
|
|
91
|
+
set(ENV_SCOTCH_INCDIR "$ENV{SCOTCH_INCDIR}")
|
|
92
|
+
if(ENV_SCOTCH_INCDIR)
|
|
93
|
+
list(APPEND _inc_env "${ENV_SCOTCH_INCDIR}")
|
|
94
|
+
elseif(ENV_SCOTCH_DIR)
|
|
95
|
+
list(APPEND _inc_env "${ENV_SCOTCH_DIR}")
|
|
96
|
+
list(APPEND _inc_env "${ENV_SCOTCH_DIR}/include")
|
|
97
|
+
list(APPEND _inc_env "${ENV_SCOTCH_DIR}/include/scotch")
|
|
98
|
+
else()
|
|
99
|
+
if(WIN32)
|
|
100
|
+
string(REPLACE ":" ";" _inc_env "$ENV{INCLUDE}")
|
|
101
|
+
else()
|
|
102
|
+
string(REPLACE ":" ";" _path_env "$ENV{INCLUDE}")
|
|
103
|
+
list(APPEND _inc_env "${_path_env}")
|
|
104
|
+
string(REPLACE ":" ";" _path_env "$ENV{C_INCLUDE_PATH}")
|
|
105
|
+
list(APPEND _inc_env "${_path_env}")
|
|
106
|
+
string(REPLACE ":" ";" _path_env "$ENV{CPATH}")
|
|
107
|
+
list(APPEND _inc_env "${_path_env}")
|
|
108
|
+
string(REPLACE ":" ";" _path_env "$ENV{INCLUDE_PATH}")
|
|
109
|
+
list(APPEND _inc_env "${_path_env}")
|
|
110
|
+
endif()
|
|
111
|
+
endif()
|
|
112
|
+
list(APPEND _inc_env "${CMAKE_PLATFORM_IMPLICIT_INCLUDE_DIRECTORIES}")
|
|
113
|
+
list(APPEND _inc_env "${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES}")
|
|
114
|
+
list(REMOVE_DUPLICATES _inc_env)
|
|
115
|
+
|
|
116
|
+
# Try to find the scotch header in the given paths
|
|
117
|
+
# -------------------------------------------------
|
|
118
|
+
# call cmake macro to find the header path
|
|
119
|
+
if(SCOTCH_INCDIR)
|
|
120
|
+
set(SCOTCH_scotch.h_DIRS "SCOTCH_scotch.h_DIRS-NOTFOUND")
|
|
121
|
+
find_path(SCOTCH_scotch.h_DIRS
|
|
122
|
+
NAMES scotch.h
|
|
123
|
+
HINTS ${SCOTCH_INCDIR})
|
|
124
|
+
else()
|
|
125
|
+
if(SCOTCH_DIR)
|
|
126
|
+
set(SCOTCH_scotch.h_DIRS "SCOTCH_scotch.h_DIRS-NOTFOUND")
|
|
127
|
+
find_path(SCOTCH_scotch.h_DIRS
|
|
128
|
+
NAMES scotch.h
|
|
129
|
+
HINTS ${SCOTCH_DIR}
|
|
130
|
+
PATH_SUFFIXES "include" "include/scotch")
|
|
131
|
+
else()
|
|
132
|
+
set(SCOTCH_scotch.h_DIRS "SCOTCH_scotch.h_DIRS-NOTFOUND")
|
|
133
|
+
find_path(SCOTCH_scotch.h_DIRS
|
|
134
|
+
NAMES scotch.h
|
|
135
|
+
HINTS ${_inc_env}
|
|
136
|
+
PATH_SUFFIXES "scotch")
|
|
137
|
+
endif()
|
|
138
|
+
endif()
|
|
139
|
+
mark_as_advanced(SCOTCH_scotch.h_DIRS)
|
|
140
|
+
|
|
141
|
+
# If found, add path to cmake variable
|
|
142
|
+
# ------------------------------------
|
|
143
|
+
if (SCOTCH_scotch.h_DIRS)
|
|
144
|
+
set(SCOTCH_INCLUDE_DIRS "${SCOTCH_scotch.h_DIRS}")
|
|
145
|
+
else ()
|
|
146
|
+
set(SCOTCH_INCLUDE_DIRS "SCOTCH_INCLUDE_DIRS-NOTFOUND")
|
|
147
|
+
if (NOT SCOTCH_FIND_QUIETLY)
|
|
148
|
+
message(STATUS "Looking for scotch -- scotch.h not found")
|
|
149
|
+
endif()
|
|
150
|
+
endif()
|
|
151
|
+
list(REMOVE_DUPLICATES SCOTCH_INCLUDE_DIRS)
|
|
152
|
+
|
|
153
|
+
# Looking for lib
|
|
154
|
+
# ---------------
|
|
155
|
+
|
|
156
|
+
# Add system library paths to search lib
|
|
157
|
+
# --------------------------------------
|
|
158
|
+
unset(_lib_env)
|
|
159
|
+
set(ENV_SCOTCH_LIBDIR "$ENV{SCOTCH_LIBDIR}")
|
|
160
|
+
if(ENV_SCOTCH_LIBDIR)
|
|
161
|
+
list(APPEND _lib_env "${ENV_SCOTCH_LIBDIR}")
|
|
162
|
+
elseif(ENV_SCOTCH_DIR)
|
|
163
|
+
list(APPEND _lib_env "${ENV_SCOTCH_DIR}")
|
|
164
|
+
list(APPEND _lib_env "${ENV_SCOTCH_DIR}/lib")
|
|
165
|
+
else()
|
|
166
|
+
if(WIN32)
|
|
167
|
+
string(REPLACE ":" ";" _lib_env "$ENV{LIB}")
|
|
168
|
+
else()
|
|
169
|
+
if(APPLE)
|
|
170
|
+
string(REPLACE ":" ";" _lib_env "$ENV{DYLD_LIBRARY_PATH}")
|
|
171
|
+
else()
|
|
172
|
+
string(REPLACE ":" ";" _lib_env "$ENV{LD_LIBRARY_PATH}")
|
|
173
|
+
endif()
|
|
174
|
+
list(APPEND _lib_env "${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES}")
|
|
175
|
+
list(APPEND _lib_env "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}")
|
|
176
|
+
endif()
|
|
177
|
+
endif()
|
|
178
|
+
list(REMOVE_DUPLICATES _lib_env)
|
|
179
|
+
|
|
180
|
+
# Try to find the scotch lib in the given paths
|
|
181
|
+
# ----------------------------------------------
|
|
182
|
+
|
|
183
|
+
set(SCOTCH_libs_to_find "scotch;scotcherrexit")
|
|
184
|
+
if (SCOTCH_LOOK_FOR_ESMUMPS)
|
|
185
|
+
list(INSERT SCOTCH_libs_to_find 0 "esmumps")
|
|
186
|
+
endif()
|
|
187
|
+
|
|
188
|
+
# call cmake macro to find the lib path
|
|
189
|
+
if(SCOTCH_LIBDIR)
|
|
190
|
+
foreach(scotch_lib ${SCOTCH_libs_to_find})
|
|
191
|
+
set(SCOTCH_${scotch_lib}_LIBRARY "SCOTCH_${scotch_lib}_LIBRARY-NOTFOUND")
|
|
192
|
+
find_library(SCOTCH_${scotch_lib}_LIBRARY
|
|
193
|
+
NAMES ${scotch_lib}
|
|
194
|
+
HINTS ${SCOTCH_LIBDIR})
|
|
195
|
+
endforeach()
|
|
196
|
+
else()
|
|
197
|
+
if(SCOTCH_DIR)
|
|
198
|
+
foreach(scotch_lib ${SCOTCH_libs_to_find})
|
|
199
|
+
set(SCOTCH_${scotch_lib}_LIBRARY "SCOTCH_${scotch_lib}_LIBRARY-NOTFOUND")
|
|
200
|
+
find_library(SCOTCH_${scotch_lib}_LIBRARY
|
|
201
|
+
NAMES ${scotch_lib}
|
|
202
|
+
HINTS ${SCOTCH_DIR}
|
|
203
|
+
PATH_SUFFIXES lib lib32 lib64)
|
|
204
|
+
endforeach()
|
|
205
|
+
else()
|
|
206
|
+
foreach(scotch_lib ${SCOTCH_libs_to_find})
|
|
207
|
+
set(SCOTCH_${scotch_lib}_LIBRARY "SCOTCH_${scotch_lib}_LIBRARY-NOTFOUND")
|
|
208
|
+
find_library(SCOTCH_${scotch_lib}_LIBRARY
|
|
209
|
+
NAMES ${scotch_lib}
|
|
210
|
+
HINTS ${_lib_env})
|
|
211
|
+
endforeach()
|
|
212
|
+
endif()
|
|
213
|
+
endif()
|
|
214
|
+
|
|
215
|
+
set(SCOTCH_LIBRARIES "")
|
|
216
|
+
set(SCOTCH_LIBRARY_DIRS "")
|
|
217
|
+
# If found, add path to cmake variable
|
|
218
|
+
# ------------------------------------
|
|
219
|
+
foreach(scotch_lib ${SCOTCH_libs_to_find})
|
|
220
|
+
|
|
221
|
+
if (SCOTCH_${scotch_lib}_LIBRARY)
|
|
222
|
+
get_filename_component(${scotch_lib}_lib_path "${SCOTCH_${scotch_lib}_LIBRARY}" PATH)
|
|
223
|
+
# set cmake variables
|
|
224
|
+
list(APPEND SCOTCH_LIBRARIES "${SCOTCH_${scotch_lib}_LIBRARY}")
|
|
225
|
+
list(APPEND SCOTCH_LIBRARY_DIRS "${${scotch_lib}_lib_path}")
|
|
226
|
+
else ()
|
|
227
|
+
list(APPEND SCOTCH_LIBRARIES "${SCOTCH_${scotch_lib}_LIBRARY}")
|
|
228
|
+
if (NOT SCOTCH_FIND_QUIETLY)
|
|
229
|
+
message(STATUS "Looking for scotch -- lib ${scotch_lib} not found")
|
|
230
|
+
endif()
|
|
231
|
+
endif ()
|
|
232
|
+
|
|
233
|
+
mark_as_advanced(SCOTCH_${scotch_lib}_LIBRARY)
|
|
234
|
+
|
|
235
|
+
endforeach()
|
|
236
|
+
list(REMOVE_DUPLICATES SCOTCH_LIBRARY_DIRS)
|
|
237
|
+
|
|
238
|
+
# check a function to validate the find
|
|
239
|
+
if(SCOTCH_LIBRARIES)
|
|
240
|
+
|
|
241
|
+
set(REQUIRED_INCDIRS)
|
|
242
|
+
set(REQUIRED_LIBDIRS)
|
|
243
|
+
set(REQUIRED_LIBS)
|
|
244
|
+
|
|
245
|
+
# SCOTCH
|
|
246
|
+
if (SCOTCH_INCLUDE_DIRS)
|
|
247
|
+
set(REQUIRED_INCDIRS "${SCOTCH_INCLUDE_DIRS}")
|
|
248
|
+
endif()
|
|
249
|
+
if (SCOTCH_LIBRARY_DIRS)
|
|
250
|
+
set(REQUIRED_LIBDIRS "${SCOTCH_LIBRARY_DIRS}")
|
|
251
|
+
endif()
|
|
252
|
+
set(REQUIRED_LIBS "${SCOTCH_LIBRARIES}")
|
|
253
|
+
# THREADS
|
|
254
|
+
if(CMAKE_THREAD_LIBS_INIT)
|
|
255
|
+
list(APPEND REQUIRED_LIBS "${CMAKE_THREAD_LIBS_INIT}")
|
|
256
|
+
endif()
|
|
257
|
+
set(Z_LIBRARY "Z_LIBRARY-NOTFOUND")
|
|
258
|
+
find_library(Z_LIBRARY NAMES z)
|
|
259
|
+
mark_as_advanced(Z_LIBRARY)
|
|
260
|
+
if(Z_LIBRARY)
|
|
261
|
+
list(APPEND REQUIRED_LIBS "-lz")
|
|
262
|
+
endif()
|
|
263
|
+
set(M_LIBRARY "M_LIBRARY-NOTFOUND")
|
|
264
|
+
find_library(M_LIBRARY NAMES m)
|
|
265
|
+
mark_as_advanced(M_LIBRARY)
|
|
266
|
+
if(M_LIBRARY)
|
|
267
|
+
list(APPEND REQUIRED_LIBS "-lm")
|
|
268
|
+
endif()
|
|
269
|
+
set(RT_LIBRARY "RT_LIBRARY-NOTFOUND")
|
|
270
|
+
find_library(RT_LIBRARY NAMES rt)
|
|
271
|
+
mark_as_advanced(RT_LIBRARY)
|
|
272
|
+
if(RT_LIBRARY)
|
|
273
|
+
list(APPEND REQUIRED_LIBS "-lrt")
|
|
274
|
+
endif()
|
|
275
|
+
|
|
276
|
+
# set required libraries for link
|
|
277
|
+
set(CMAKE_REQUIRED_INCLUDES "${REQUIRED_INCDIRS}")
|
|
278
|
+
set(CMAKE_REQUIRED_LIBRARIES)
|
|
279
|
+
foreach(lib_dir ${REQUIRED_LIBDIRS})
|
|
280
|
+
list(APPEND CMAKE_REQUIRED_LIBRARIES "-L${lib_dir}")
|
|
281
|
+
endforeach()
|
|
282
|
+
list(APPEND CMAKE_REQUIRED_LIBRARIES "${REQUIRED_LIBS}")
|
|
283
|
+
string(REGEX REPLACE "^ -" "-" CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES}")
|
|
284
|
+
|
|
285
|
+
# test link
|
|
286
|
+
unset(SCOTCH_WORKS CACHE)
|
|
287
|
+
include(CheckFunctionExists)
|
|
288
|
+
check_function_exists(SCOTCH_graphInit SCOTCH_WORKS)
|
|
289
|
+
mark_as_advanced(SCOTCH_WORKS)
|
|
290
|
+
|
|
291
|
+
if(SCOTCH_WORKS)
|
|
292
|
+
# save link with dependencies
|
|
293
|
+
set(SCOTCH_LIBRARIES "${REQUIRED_LIBS}")
|
|
294
|
+
else()
|
|
295
|
+
if(NOT SCOTCH_FIND_QUIETLY)
|
|
296
|
+
message(STATUS "Looking for SCOTCH : test of SCOTCH_graphInit with SCOTCH library fails")
|
|
297
|
+
message(STATUS "CMAKE_REQUIRED_LIBRARIES: ${CMAKE_REQUIRED_LIBRARIES}")
|
|
298
|
+
message(STATUS "CMAKE_REQUIRED_INCLUDES: ${CMAKE_REQUIRED_INCLUDES}")
|
|
299
|
+
message(STATUS "Check in CMakeFiles/CMakeError.log to figure out why it fails")
|
|
300
|
+
endif()
|
|
301
|
+
endif()
|
|
302
|
+
set(CMAKE_REQUIRED_INCLUDES)
|
|
303
|
+
set(CMAKE_REQUIRED_FLAGS)
|
|
304
|
+
set(CMAKE_REQUIRED_LIBRARIES)
|
|
305
|
+
endif(SCOTCH_LIBRARIES)
|
|
306
|
+
|
|
307
|
+
if (SCOTCH_LIBRARIES)
|
|
308
|
+
list(GET SCOTCH_LIBRARIES 0 first_lib)
|
|
309
|
+
get_filename_component(first_lib_path "${first_lib}" PATH)
|
|
310
|
+
if (${first_lib_path} MATCHES "/lib(32|64)?$")
|
|
311
|
+
string(REGEX REPLACE "/lib(32|64)?$" "" not_cached_dir "${first_lib_path}")
|
|
312
|
+
set(SCOTCH_DIR_FOUND "${not_cached_dir}" CACHE PATH "Installation directory of SCOTCH library" FORCE)
|
|
313
|
+
else()
|
|
314
|
+
set(SCOTCH_DIR_FOUND "${first_lib_path}" CACHE PATH "Installation directory of SCOTCH library" FORCE)
|
|
315
|
+
endif()
|
|
316
|
+
endif()
|
|
317
|
+
mark_as_advanced(SCOTCH_DIR)
|
|
318
|
+
mark_as_advanced(SCOTCH_DIR_FOUND)
|
|
319
|
+
|
|
320
|
+
# Check the size of SCOTCH_Num
|
|
321
|
+
# ---------------------------------
|
|
322
|
+
set(CMAKE_REQUIRED_INCLUDES ${SCOTCH_INCLUDE_DIRS})
|
|
323
|
+
|
|
324
|
+
include(CheckCSourceRuns)
|
|
325
|
+
#stdio.h and stdint.h should be included by scotch.h directly
|
|
326
|
+
set(SCOTCH_C_TEST_SCOTCH_Num_4 "
|
|
327
|
+
#include <stdio.h>
|
|
328
|
+
#include <stdint.h>
|
|
329
|
+
#include <scotch.h>
|
|
330
|
+
int main(int argc, char **argv) {
|
|
331
|
+
if (sizeof(SCOTCH_Num) == 4)
|
|
332
|
+
return 0;
|
|
333
|
+
else
|
|
334
|
+
return 1;
|
|
335
|
+
}
|
|
336
|
+
")
|
|
337
|
+
|
|
338
|
+
set(SCOTCH_C_TEST_SCOTCH_Num_8 "
|
|
339
|
+
#include <stdio.h>
|
|
340
|
+
#include <stdint.h>
|
|
341
|
+
#include <scotch.h>
|
|
342
|
+
int main(int argc, char **argv) {
|
|
343
|
+
if (sizeof(SCOTCH_Num) == 8)
|
|
344
|
+
return 0;
|
|
345
|
+
else
|
|
346
|
+
return 1;
|
|
347
|
+
}
|
|
348
|
+
")
|
|
349
|
+
check_c_source_runs("${SCOTCH_C_TEST_SCOTCH_Num_4}" SCOTCH_Num_4)
|
|
350
|
+
if(NOT SCOTCH_Num_4)
|
|
351
|
+
check_c_source_runs("${SCOTCH_C_TEST_SCOTCH_Num_8}" SCOTCH_Num_8)
|
|
352
|
+
if(NOT SCOTCH_Num_8)
|
|
353
|
+
set(SCOTCH_INTSIZE -1)
|
|
354
|
+
else()
|
|
355
|
+
set(SCOTCH_INTSIZE 8)
|
|
356
|
+
endif()
|
|
357
|
+
else()
|
|
358
|
+
set(SCOTCH_INTSIZE 4)
|
|
359
|
+
endif()
|
|
360
|
+
set(CMAKE_REQUIRED_INCLUDES "")
|
|
361
|
+
|
|
362
|
+
# check that SCOTCH has been found
|
|
363
|
+
# ---------------------------------
|
|
364
|
+
include(FindPackageHandleStandardArgs)
|
|
365
|
+
find_package_handle_standard_args(SCOTCH DEFAULT_MSG
|
|
366
|
+
SCOTCH_INCLUDE_DIRS
|
|
367
|
+
SCOTCH_LIBRARIES
|
|
368
|
+
SCOTCH_WORKS)
|
|
369
|
+
#
|
|
370
|
+
# TODO: Add possibility to check for specific functions in the library
|
|
371
|
+
#
|
|
372
|
+
|
|
373
|
+
unset(CMAKE_REQUIRED_QUIET)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#----------------------------------------------------------------
|
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
|
3
|
+
#----------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
# Commands may need to know the format version.
|
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
7
|
+
|
|
8
|
+
# Import target "Mmg::libmmg2d_so" for configuration "Release"
|
|
9
|
+
set_property(TARGET Mmg::libmmg2d_so APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
10
|
+
set_target_properties(Mmg::libmmg2d_so PROPERTIES
|
|
11
|
+
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/mmg2d.lib"
|
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/mmg2d.dll"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
list(APPEND _cmake_import_check_targets Mmg::libmmg2d_so )
|
|
16
|
+
list(APPEND _cmake_import_check_files_for_Mmg::libmmg2d_so "${_IMPORT_PREFIX}/lib/mmg2d.lib" "${_IMPORT_PREFIX}/bin/mmg2d.dll" )
|
|
17
|
+
|
|
18
|
+
# Import target "Mmg::libmmgs_so" for configuration "Release"
|
|
19
|
+
set_property(TARGET Mmg::libmmgs_so APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
20
|
+
set_target_properties(Mmg::libmmgs_so PROPERTIES
|
|
21
|
+
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/mmgs.lib"
|
|
22
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/mmgs.dll"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
list(APPEND _cmake_import_check_targets Mmg::libmmgs_so )
|
|
26
|
+
list(APPEND _cmake_import_check_files_for_Mmg::libmmgs_so "${_IMPORT_PREFIX}/lib/mmgs.lib" "${_IMPORT_PREFIX}/bin/mmgs.dll" )
|
|
27
|
+
|
|
28
|
+
# Import target "Mmg::libmmg3d_so" for configuration "Release"
|
|
29
|
+
set_property(TARGET Mmg::libmmg3d_so APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
30
|
+
set_target_properties(Mmg::libmmg3d_so PROPERTIES
|
|
31
|
+
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/mmg3d.lib"
|
|
32
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/mmg3d.dll"
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
list(APPEND _cmake_import_check_targets Mmg::libmmg3d_so )
|
|
36
|
+
list(APPEND _cmake_import_check_files_for_Mmg::libmmg3d_so "${_IMPORT_PREFIX}/lib/mmg3d.lib" "${_IMPORT_PREFIX}/bin/mmg3d.dll" )
|
|
37
|
+
|
|
38
|
+
# Import target "Mmg::libmmg_so" for configuration "Release"
|
|
39
|
+
set_property(TARGET Mmg::libmmg_so APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
40
|
+
set_target_properties(Mmg::libmmg_so PROPERTIES
|
|
41
|
+
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/mmg.lib"
|
|
42
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/mmg.dll"
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
list(APPEND _cmake_import_check_targets Mmg::libmmg_so )
|
|
46
|
+
list(APPEND _cmake_import_check_files_for_Mmg::libmmg_so "${_IMPORT_PREFIX}/lib/mmg.lib" "${_IMPORT_PREFIX}/bin/mmg.dll" )
|
|
47
|
+
|
|
48
|
+
# Commands beyond this point should not need to know the version.
|
|
49
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Generated by CMake
|
|
2
|
+
|
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
|
5
|
+
endif()
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
|
8
|
+
endif()
|
|
9
|
+
cmake_policy(PUSH)
|
|
10
|
+
cmake_policy(VERSION 2.8.3...3.29)
|
|
11
|
+
#----------------------------------------------------------------
|
|
12
|
+
# Generated CMake target import file.
|
|
13
|
+
#----------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
# Commands may need to know the format version.
|
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
17
|
+
|
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
|
19
|
+
set(_cmake_targets_defined "")
|
|
20
|
+
set(_cmake_targets_not_defined "")
|
|
21
|
+
set(_cmake_expected_targets "")
|
|
22
|
+
foreach(_cmake_expected_target IN ITEMS Mmg::libmmg2d_so Mmg::libmmgs_so Mmg::libmmg3d_so Mmg::libmmg_so)
|
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
|
26
|
+
else()
|
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
|
28
|
+
endif()
|
|
29
|
+
endforeach()
|
|
30
|
+
unset(_cmake_expected_target)
|
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
|
32
|
+
unset(_cmake_targets_defined)
|
|
33
|
+
unset(_cmake_targets_not_defined)
|
|
34
|
+
unset(_cmake_expected_targets)
|
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
|
36
|
+
cmake_policy(POP)
|
|
37
|
+
return()
|
|
38
|
+
endif()
|
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
|
43
|
+
endif()
|
|
44
|
+
unset(_cmake_targets_defined)
|
|
45
|
+
unset(_cmake_targets_not_defined)
|
|
46
|
+
unset(_cmake_expected_targets)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Compute the installation prefix relative to this file.
|
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
|
55
|
+
set(_IMPORT_PREFIX "")
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
# Create imported target Mmg::libmmg2d_so
|
|
59
|
+
add_library(Mmg::libmmg2d_so SHARED IMPORTED)
|
|
60
|
+
|
|
61
|
+
set_target_properties(Mmg::libmmg2d_so PROPERTIES
|
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Create imported target Mmg::libmmgs_so
|
|
66
|
+
add_library(Mmg::libmmgs_so SHARED IMPORTED)
|
|
67
|
+
|
|
68
|
+
set_target_properties(Mmg::libmmgs_so PROPERTIES
|
|
69
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
# Create imported target Mmg::libmmg3d_so
|
|
73
|
+
add_library(Mmg::libmmg3d_so SHARED IMPORTED)
|
|
74
|
+
|
|
75
|
+
set_target_properties(Mmg::libmmg3d_so PROPERTIES
|
|
76
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
# Create imported target Mmg::libmmg_so
|
|
80
|
+
add_library(Mmg::libmmg_so SHARED IMPORTED)
|
|
81
|
+
|
|
82
|
+
set_target_properties(Mmg::libmmg_so PROPERTIES
|
|
83
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include"
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
# Load information for each installed configuration.
|
|
87
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/MmgTargets-*.cmake")
|
|
88
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
89
|
+
include("${_cmake_config_file}")
|
|
90
|
+
endforeach()
|
|
91
|
+
unset(_cmake_config_file)
|
|
92
|
+
unset(_cmake_config_files)
|
|
93
|
+
|
|
94
|
+
# Cleanup temporary variables.
|
|
95
|
+
set(_IMPORT_PREFIX)
|
|
96
|
+
|
|
97
|
+
# Loop over all imported files and verify that they actually exist
|
|
98
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
99
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
100
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
101
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
102
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
103
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
104
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
105
|
+
\"${_cmake_file}\"
|
|
106
|
+
but this file does not exist. Possible reasons include:
|
|
107
|
+
* The file was deleted, renamed, or moved to another location.
|
|
108
|
+
* An install or uninstall procedure did not complete successfully.
|
|
109
|
+
* The installation package was faulty and contained
|
|
110
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
111
|
+
but not all the files it references.
|
|
112
|
+
")
|
|
113
|
+
endif()
|
|
114
|
+
endforeach()
|
|
115
|
+
endif()
|
|
116
|
+
unset(_cmake_file)
|
|
117
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
118
|
+
endforeach()
|
|
119
|
+
unset(_cmake_target)
|
|
120
|
+
unset(_cmake_import_check_targets)
|
|
121
|
+
|
|
122
|
+
# This file does not depend on other imported targets which have
|
|
123
|
+
# been exported from the same project but in a separate export set.
|
|
124
|
+
|
|
125
|
+
# Commands beyond this point should not need to know the version.
|
|
126
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
127
|
+
cmake_policy(POP)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
|
3
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
|
4
|
+
####### The input file was mmgConfig.cmake.in ########
|
|
5
|
+
|
|
6
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
|
7
|
+
|
|
8
|
+
macro(set_and_check _var _file)
|
|
9
|
+
set(${_var} "${_file}")
|
|
10
|
+
if(NOT EXISTS "${_file}")
|
|
11
|
+
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
|
12
|
+
endif()
|
|
13
|
+
endmacro()
|
|
14
|
+
|
|
15
|
+
macro(check_required_components _NAME)
|
|
16
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
|
17
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
|
18
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
|
19
|
+
set(${_NAME}_FOUND FALSE)
|
|
20
|
+
endif()
|
|
21
|
+
endif()
|
|
22
|
+
endforeach()
|
|
23
|
+
endmacro()
|
|
24
|
+
|
|
25
|
+
####################################################################################
|
|
26
|
+
|
|
27
|
+
include(CMakeFindDependencyMacro)
|
|
28
|
+
|
|
29
|
+
# Allows us to use all .cmake files in this directory
|
|
30
|
+
# required for `find_dependency({SCOTCH,VTK}) to work.
|
|
31
|
+
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}")
|
|
32
|
+
|
|
33
|
+
if("FALSE" AND NOT "" MATCHES OFF)
|
|
34
|
+
find_dependency(SCOTCH)
|
|
35
|
+
endif()
|
|
36
|
+
|
|
37
|
+
if("0" AND NOT "" MATCHES OFF)
|
|
38
|
+
find_dependency(VTK)
|
|
39
|
+
endif()
|
|
40
|
+
|
|
41
|
+
if (NOT TARGET Mmg::mmg )
|
|
42
|
+
include(${CMAKE_CURRENT_LIST_DIR}/MmgTargets.cmake)
|
|
43
|
+
endif ()
|
lib/mmg.lib
ADDED
|
Binary file
|
lib/mmg2d.lib
ADDED
|
Binary file
|
lib/mmg3d.lib
ADDED
|
Binary file
|
lib/mmgs.lib
ADDED
|
Binary file
|