1 # Copyright (C) 2015-2021 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11 FATAL_ERROR)
25 PROJECT(MEDCoupling C CXX)
27 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
30 IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.3)
31 cmake_policy(SET CMP0057 NEW)
32 IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.13)
33 cmake_policy(SET CMP0078 OLD)
35 IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.14)
36 cmake_policy(SET CMP0086 OLD)
42 SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake files")
43 IF(EXISTS ${CONFIGURATION_ROOT_DIR})
44 LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
45 INCLUDE(SalomeMacros NO_POLICY_SCOPE)
47 MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
52 SALOME_SETUP_VERSION(9.8.0 DEVELOPMENT)
53 MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"")
57 INCLUDE(SalomeSetupPlatform)
59 # [ABN]: use the below for aggressive code quality check:
61 # add_definitions(-Weverything)
62 # add_definitions(-Wno-inconsistent-missing-override)
63 # add_definitions(-Wno-c++98-compat -Wno-c++98-compat-pedantic)
64 # add_definitions(-Wno-sign-conversion)
65 # add_definitions(-Wno-switch-enum)
67 # add_definitions(-Wno-documentation-unknown-command) # \image in Doxygen
68 # add_definitions(-Wno-gnu-statement-expression) # assert(...)
70 # add_definitions(-Wno-reserved-id-macro -Wno-padded -Wno-weak-vtables -Wdouble-promotion -Wno-comma -Wno-unused-parameter)
71 # add_definitions(-Wno-unreachable-code-break -Wno-old-style-cast -Wno-deprecated -Wno-double-promotion)
72 # add_definitions(-Wno-exit-time-destructors -Wno-global-constructors -Wno-missing-prototypes)
73 # add_definitions(-Wno-covered-switch-default -Wno-weak-template-vtables -Wno-undefined-func-template -Wno-used-but-marked-unused)
74 # add_definitions(-Wno-unreachable-code-return -Wno-missing-noreturn -Wno-unused-member-function -Wno-header-hygiene)
75 # add_definitions(-Wno-ignored-qualifiers) # because of MED-file
76 # add_definitions(-Wno-unused-function -Wno-unused-macros)
77 # add_definitions(-Wno-missing-field-initializers)
78 # add_definitions(-Wno-shadow) # SWIG generates a lot of those ...
80 # add_definitions(-Wno-float-equal) # OUCH
86 INCLUDE(CMakeDependentOption)
87 OPTION(MEDCOUPLING_MICROMED "Build MED without MED file dependency." OFF)
88 OPTION(MEDCOUPLING_ENABLE_PYTHON "Build PYTHON bindings." ON)
89 OPTION(MEDCOUPLING_ENABLE_PARTITIONER "Build MEDPartitioner." ON)
90 OPTION(MEDCOUPLING_ENABLE_RENUMBER "Build Renumber." ON)
91 OPTION(MEDCOUPLING_WITH_FILE_EXAMPLES "Install examples of files containing meshes and fields of different formats." ON)
92 OPTION(MEDCOUPLING_USE_MPI "(Use MPI containers) - For MED this triggers the build of ParaMEDMEM." OFF)
93 OPTION(MEDCOUPLING_BUILD_TESTS "Build MED tests." ON)
94 OPTION(MEDCOUPLING_BUILD_DOC "Build MED doc." ON)
95 OPTION(MEDCOUPLING_BUILD_STATIC "Build MEDCoupling library in static mode." OFF)
96 OPTION(MEDCOUPLING_USE_64BIT_IDS "Size of IDs to refer cells and nodes. 32 bits when OFF (default), 64 bits when ON." ON)
98 IF(${MEDCOUPLING_USE_MPI})
99 SET(USE_METIS_NOT_PARMETIS OFF)
101 SET(USE_METIS_NOT_PARMETIS ON)
103 CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_METIS "Enable metis graph library in MEDPartitioner." ${USE_METIS_NOT_PARMETIS}
104 "MEDCOUPLING_ENABLE_PARTITIONER" OFF)
105 CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_SCOTCH "Enable scotch graph library in MEDPartitioner." ON
106 "MEDCOUPLING_ENABLE_PARTITIONER" OFF)
107 CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_PARMETIS "Enable parmetis graph library in MEDPartitioner." ${MEDCOUPLING_USE_MPI}
108 "MEDCOUPLING_ENABLE_PARTITIONER;MEDCOUPLING_USE_MPI" OFF)
109 CMAKE_DEPENDENT_OPTION(MEDCOUPLING_PARTITIONER_PTSCOTCH "Enable ptscotch graph library in MEDPartitioner." ${MEDCOUPLING_USE_MPI}
110 "MEDCOUPLING_ENABLE_PARTITIONER;MEDCOUPLING_USE_MPI" OFF)
111 SET(XDR_DEFAULT_OPTION ON)
113 SET(XDR_DEFAULT_OPTION OFF)
115 CMAKE_DEPENDENT_OPTION(MEDCOUPLING_MEDLOADER_USE_XDR "Enable use of XDR for SauvReader." ${XDR_DEFAULT_OPTION} "NOT MEDCOUPLING_MICROMED" OFF)
116 CMAKE_DEPENDENT_OPTION(MEDCOUPLING_BUILD_FRENCH_DOC "Generate MEDCOUPLING French documentation" OFF
117 "MEDCOUPLING_BUILD_DOC" OFF)
119 IF(MEDCOUPLING_BUILD_STATIC)
120 SET(BUILD_SHARED_LIBS 0)
121 SET(CMAKE_POSITION_INDEPENDENT_CODE 1) # -fPIC option
123 SET(BUILD_SHARED_LIBS 1)
126 IF(${MEDCOUPLING_PARTITIONER_PARMETIS} AND ${MEDCOUPLING_PARTITIONER_METIS})
127 MESSAGE(FATAL_ERROR "ParMetis and Metis are mutually exclusive! Make a choice (options MEDCOUPLING_PARTITIONER_METIS and MEDCOUPLING_PARTITIONER_PARMETIS).")
130 IF(${MEDCOUPLING_PARTITIONER_PTSCOTCH} AND ${MEDCOUPLING_PARTITIONER_SCOTCH})
131 MESSAGE(FATAL_ERROR "PTScotch and Scotch are mutually exclusive! Make a choice (options MEDCOUPLING_PARTITIONER_SCOTCH and MEDCOUPLING_PARTITIONER_PTSCOTCH).")
135 # Set list of prerequisites
136 # =========================
138 IF(NOT MEDCOUPLING_MICROMED)
139 FIND_PACKAGE(SalomeHDF5 REQUIRED)
140 FIND_PACKAGE(SalomeMEDFile REQUIRED)
142 IF(MEDCOUPLING_MEDLOADER_USE_XDR)
143 FIND_PACKAGE(SalomeXDR REQUIRED)
144 ENDIF(MEDCOUPLING_MEDLOADER_USE_XDR)
146 IF(MEDCOUPLING_ENABLE_PARTITIONER)
147 FIND_PACKAGE(SalomeLibXml2)
148 SALOME_LOG_OPTIONAL_PACKAGE(LibXml2 MEDCOUPLING_ENABLE_PARTITIONER)
149 IF(MEDCOUPLING_PARTITIONER_METIS)
150 FIND_PACKAGE(SalomeMetis)
151 SALOME_LOG_OPTIONAL_PACKAGE(Metis MEDCOUPLING_PARTITIONER_METIS)
152 IF(SalomeMetis_FOUND)
153 ADD_DEFINITIONS("-DMED_ENABLE_METIS")
155 ENDIF(MEDCOUPLING_PARTITIONER_METIS)
156 IF(MEDCOUPLING_PARTITIONER_SCOTCH)
157 FIND_PACKAGE(SalomeScotch)
158 SALOME_LOG_OPTIONAL_PACKAGE(Scotch MEDCOUPLING_PARTITIONER_SCOTCH)
159 IF(SalomeScotch_FOUND)
160 ADD_DEFINITIONS("-DMED_ENABLE_SCOTCH")
162 ENDIF(MEDCOUPLING_PARTITIONER_SCOTCH)
163 ENDIF(MEDCOUPLING_ENABLE_PARTITIONER)
164 ENDIF(NOT MEDCOUPLING_MICROMED)
166 ENABLE_TESTING() # let it outsite because even if MEDCOUPLING_BUILD_TESTS is OFF, python tests that not need additional compilation can be run.
168 IF(MEDCOUPLING_BUILD_TESTS)
169 FIND_PACKAGE(SalomeCppUnit)
170 SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
171 ENDIF(MEDCOUPLING_BUILD_TESTS)
173 IF(MEDCOUPLING_USE_MPI)
174 FIND_PACKAGE(SalomeMPI REQUIRED)
175 ADD_DEFINITIONS("-DHAVE_MPI")
176 SALOME_ADD_MPI_TO_HDF5()
177 IF(MEDCOUPLING_PARTITIONER_PARMETIS)
178 FIND_PACKAGE(SalomeParMetis)
179 SALOME_LOG_OPTIONAL_PACKAGE(ParMetis MEDCOUPLING_PARTITIONER_PARMETIS)
180 IF (SalomeParMetis_FOUND)
181 ADD_DEFINITIONS("-DMED_ENABLE_PARMETIS")
183 ENDIF(MEDCOUPLING_PARTITIONER_PARMETIS)
184 IF(MEDCOUPLING_PARTITIONER_PTSCOTCH)
185 FIND_PACKAGE(SalomePTScotch)
186 SALOME_LOG_OPTIONAL_PACKAGE(PTScotch MEDCOUPLING_PARTITIONER_PTSCOTCH)
187 IF(SalomePTScotch_FOUND)
188 ADD_DEFINITIONS("-DMED_ENABLE_PTSCOTCH")
189 ENDIF(SalomePTScotch_FOUND)
190 ENDIF(MEDCOUPLING_PARTITIONER_PTSCOTCH)
191 ENDIF(MEDCOUPLING_USE_MPI)
193 IF(MEDCOUPLING_ENABLE_RENUMBER)
194 FIND_PACKAGE(SalomeBoost)
195 SALOME_LOG_OPTIONAL_PACKAGE(Boost MEDCOUPLING_ENABLE_RENUMBER)
196 ENDIF(MEDCOUPLING_ENABLE_RENUMBER)
198 IF(MEDCOUPLING_ENABLE_PYTHON)
199 FIND_PACKAGE(SalomePythonInterp)
200 FIND_PACKAGE(SalomePythonLibs)
201 FIND_PACKAGE(SalomeNumPySciPy)
202 FIND_PACKAGE(SalomeSWIG)
203 SALOME_LOG_OPTIONAL_PACKAGE(PythonInterp MEDCOUPLING_ENABLE_PYTHON)
204 SALOME_LOG_OPTIONAL_PACKAGE(PythonLibs MEDCOUPLING_ENABLE_PYTHON)
205 SALOME_LOG_OPTIONAL_PACKAGE(SWIG MEDCOUPLING_ENABLE_PYTHON)
206 IF ("${PYTHON_VERSION_MAJOR}" STREQUAL "2")
207 IF("${PYTHON_VERSION_MINOR}" LESS "7")
208 MESSAGE(FATAL_ERROR "MEDCoupling's Python requires at least Python 2.7 (you seem to have ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}). Upgrade your Python, or turn off MEDCOUPLING_ENABLE_PYTHON")
211 IF ("${PYTHON_VERSION_MAJOR}" STREQUAL "3")
212 MESSAGE(STATUS "Using Python 3")
214 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
216 IF(MEDCOUPLING_BUILD_DOC)
217 FIND_PACKAGE(SalomeDoxygen)
218 FIND_PACKAGE(SalomeGraphviz)
219 FIND_PACKAGE(SalomeSphinx)
220 SALOME_LOG_OPTIONAL_PACKAGE(Doxygen MEDCOUPLING_BUILD_DOC)
221 SALOME_LOG_OPTIONAL_PACKAGE(Graphviz MEDCOUPLING_BUILD_DOC)
222 SALOME_LOG_OPTIONAL_PACKAGE(Sphinx MEDCOUPLING_BUILD_DOC)
223 ENDIF(MEDCOUPLING_BUILD_DOC)
226 SALOME_PACKAGE_REPORT_AND_CHECK()
230 # Directories have to be given after prerequisites (to be able to use
231 # Python version string for example).
233 SET(MEDCOUPLING_INSTALL_BINS bin CACHE PATH "Install path: MEDCoupling binaries")
234 SET(MEDCOUPLING_INSTALL_LIBS lib CACHE PATH "Install path: MEDCoupling libs")
235 SET(MEDCOUPLING_INSTALL_HEADERS include CACHE PATH "Install path: MEDCoupling headers")
236 SET(MEDCOUPLING_INSTALL_SCRIPT_SCRIPTS ${MEDCOUPLING_INSTALL_BINS} CACHE PATH "Install path: MEDCoupling scripts")
237 SET(MEDCOUPLING_INSTALL_TESTS tests CACHE PATH "Install path: MEDCoupling tests")
238 # SET(MEDCOUPLING_INSTALL_SCRIPT_DATA ${MEDCOUPLING_INSTALL_BINS} CACHE PATH "Install path: MEDCoupling script data")
239 SET(MEDCOUPLING_INSTALL_SCRIPT_PYTHON ${MEDCOUPLING_INSTALL_BINS} CACHE PATH "Install path: MEDCoupling Python scripts")
240 SET(MEDCOUPLING_INSTALL_CMAKE_LOCAL cmake_files CACHE PATH "Install path: local MEDCoupling CMake files")
242 IF(MEDCOUPLING_ENABLE_PYTHON)
243 SET(_pydir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages)
244 SET(MEDCOUPLING_INSTALL_PYTHON ${_pydir} CACHE PATH "Install path: MEDCoupling Python stuff")
245 SET(MEDCOUPLING_INSTALL_PYTHON_SHARED ${MEDCOUPLING_INSTALL_PYTHON}/shared_modules CACHE PATH
246 "Install path: MEDCoupling Python shared modules")
247 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
249 SET(MEDCOUPLING_INSTALL_RES share/resources CACHE PATH "Install path: MEDCoupling resources")
250 SET(MEDCOUPLING_INSTALL_DOC share/doc CACHE PATH "Install path: MEDCoupling documentation")
254 SET(MEDCOUPLING_INSTALL_RES_DATA "${MEDCOUPLING_INSTALL_RES}/med" CACHE PATH "Install path: MEDCoupling specific data")
255 #SET(MEDCOUPLING_INSTALL_RES_SCRIPTS "${MEDCOUPLING_INSTALL_RES}/med" CACHE PATH "Install path: MEDCouplng specific scripts")
257 MARK_AS_ADVANCED(MEDCOUPLING_INSTALL_BINS MEDCOUPLING_INSTALL_LIBS MEDCOUPLING_INSTALL_IDLS MEDCOUPLING_INSTALL_HEADERS)
258 MARK_AS_ADVANCED(MEDCOUPLING_INSTALL_SCRIPT_SCRIPTS MEDCOUPLING_INSTALL_SCRIPT_DATA MEDCOUPLING_INSTALL_SCRIPT_PYTHON)
259 MARK_AS_ADVANCED(MEDCOUPLING_INSTALL_APPLISKEL_SCRIPTS MEDCOUPLING_INSTALL_APPLISKEL_PYTHON MEDCOUPLING_INSTALL_CMAKE MEDCOUPLING_INSTALL_CMAKE_LOCAL MEDCOUPLING_INSTALL_RES)
260 MARK_AS_ADVANCED(MEDCOUPLING_INSTALL_PYTHON MEDCOUPLING_INSTALL_PYTHON_SHARED MEDCOUPLING_INSTALL_RES_DATA MEDCOUPLING_INSTALL_DOC)
262 # Header configuration
263 # ====================
264 SALOME_CONFIGURE_FILE(MEDCoupling_version.h.in MEDCoupling_version.h INSTALL ${MEDCOUPLING_INSTALL_HEADERS})
266 # Accumulate environment variables for MED module
267 #SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${MEDCOUPLING_INSTALL_BINS}
268 # ${CMAKE_INSTALL_PREFIX}/${MEDCOUPLING_INSTALL_PYTHON})
269 #SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${MEDCOUPLING_INSTALL_LIBS})
275 ADD_DEFINITIONS("-D_USE_MATH_DEFINES")
278 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
280 ADD_SUBDIRECTORY(src)
281 ADD_SUBDIRECTORY(adm_local)
283 IF(MEDCOUPLING_BUILD_DOC)
284 ADD_SUBDIRECTORY(doc)
285 ENDIF(MEDCOUPLING_BUILD_DOC)
287 ADD_SUBDIRECTORY(resources)
288 IF(MEDCOUPLING_ENABLE_PYTHON)
289 ADD_SUBDIRECTORY(v8_work)
292 # Configuration export
293 # ====================
294 INCLUDE(CMakePackageConfigHelpers)
296 # List of targets in this project we want to make visible to the rest of the world.
297 # They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
298 SET(_${PROJECT_NAME}_exposed_targets
299 interpkernel medcouplingcpp medcouplingremapper medicoco)
301 IF(NOT MEDCOUPLING_MICROMED)
302 LIST(APPEND _${PROJECT_NAME}_exposed_targets medloader)
303 IF(MEDCOUPLING_ENABLE_RENUMBER)
304 LIST(APPEND _${PROJECT_NAME}_exposed_targets renumbercpp)
306 IF(MEDCOUPLING_ENABLE_PARTITIONER)
307 LIST(APPEND _${PROJECT_NAME}_exposed_targets medpartitionercpp)
308 IF(MEDCOUPLING_BUILD_TESTS)
309 LIST(APPEND _${PROJECT_NAME}_exposed_targets MEDPARTITIONERTest)
312 IF(MEDCOUPLING_BUILD_TESTS)
313 LIST(APPEND _${PROJECT_NAME}_exposed_targets InterpKernelTest InterpKernelTestUtils)
317 IF(MEDCOUPLING_USE_MPI)
318 LIST(APPEND _${PROJECT_NAME}_exposed_targets paramedmem)
319 IF(NOT MEDCOUPLING_MICROMED)
320 LIST(APPEND _${PROJECT_NAME}_exposed_targets paramedloader)
322 IF(MEDCOUPLING_BUILD_TESTS)
323 IF(NOT MEDCOUPLING_MICROMED)
324 LIST(APPEND _${PROJECT_NAME}_exposed_targets ParaMEDMEMTest)
329 # Add all targets to the build-tree export set
331 EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
332 FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
334 # Create the configuration files:
336 # Ensure the variables are always defined for the configure (even if empty):
337 SET(MEDFILE_ROOT_DIR "${MEDFILE_ROOT_DIR}")
338 SET(MPI_ROOT_DIR "${MPI_ROOT_DIR}")
339 SET(BOOST_ROOT_DIR "${BOOST_ROOT_DIR}")
340 SET(SWIG_ROOT_DIR "${SWIG_ROOT_DIR}")
341 SET(PYTHON_ROOT_DIR "${PYTHON_ROOT_DIR}")
342 SET(CPPUNIT_ROOT_DIR "${CPPUNIT_ROOT_DIR}")
343 SET(GRAPHVIZ_ROOT_DIR "${GRAPHVIZ_ROOT_DIR}")
344 SET(DOXYGEN_ROOT_DIR "${DOXYGEN_ROOT_DIR}")
345 SET(SPHINX_ROOT_DIR "${SPHINX_ROOT_DIR}")
347 SET(METIS_ROOT_DIR "${METIS_ROOT_DIR}")
348 SET(PARMETIS_ROOT_DIR "${PARMETIS_ROOT_DIR}")
349 SET(SCOTCH_ROOT_DIR "${SCOTCH_ROOT_DIR}")
350 SET(XDR_ROOT_DIR "${XDR_ROOT_DIR}")
352 SET(CONF_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}")
354 # Build variables that will be expanded when configuring Salome<MODULE>Config.cmake:
355 SALOME_CONFIGURE_PREPARE(MEDFile MPI Boost Swig Python CppUnit Graphviz Doxygen Sphinx
356 Metis ParMetis Scotch XDR)
358 CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
359 ${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake
360 INSTALL_DESTINATION "${MEDCOUPLING_INSTALL_CMAKE_LOCAL}"
361 PATH_VARS CONF_INCLUDE_DIRS MEDCOUPLING_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
362 MEDFILE_ROOT_DIR MPI_ROOT_DIR
363 BOOST_ROOT_DIR SWIG_ROOT_DIR PYTHON_ROOT_DIR CPPUNIT_ROOT_DIR GRAPHVIZ_ROOT_DIR DOXYGEN_ROOT_DIR
365 METIS_ROOT_DIR PARMETIS_ROOT_DIR SCOTCH_ROOT_DIR XDR_ROOT_DIR)
367 WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
368 VERSION ${${PROJECT_NAME_UC}_VERSION}
369 COMPATIBILITY AnyNewerVersion)
371 # Install the CMake configuration files:
373 "${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake"
374 "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
375 DESTINATION "${MEDCOUPLING_INSTALL_CMAKE_LOCAL}")
377 # Install the export set for use with the install-tree
378 INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${MEDCOUPLING_INSTALL_CMAKE_LOCAL}"
379 FILE ${PROJECT_NAME}Targets.cmake)