medInria / medInria-public

Open-source part of the medInria software
https://med.inria.fr/
BSD 4-Clause "Original" or "Old" License
91 stars 70 forks source link

fix ep_Initialisation macro and adapt for non-cmake projects #1214

Closed fcollot closed 5 months ago

fcollot commented 5 months ago

The current implementation of the ep_Initialisation has two issues:

This PR correctly implements the arguments and adds PACKAGE_NAME to specify alternative package names and NO_CMAKE_PACKAGE to allow non cmake external projects to be added. (Note that USE_SYSTEM, BUILD_SHARED_LIBS and REQUIRED_FOR_PLUGINS should in practice be options, not single-value arguments, but I preferred keeping the macro compatible with the current code)

_(also the NO_CMAKE_BUILDS_PATH option to find_package is removed because it is no longer used by cmake)_