export the targets with a python dependency to a different config file (#7914)

* export the targets with a python dependency to a different config file

* add the forgotten file

* improve the dependency from boost components

* fix management of dependencies for RDKitPython

* fix install location for RdkitPython cmake config file

* fix finding boost components

* put libraries that depend on rdkit_py_base in the python component
This commit is contained in:
Riccardo Vianello
2025-02-19 05:53:30 +01:00
committed by GitHub
parent 4eb1ea9985
commit 560d5ad604
5 changed files with 81 additions and 24 deletions

View File

@@ -0,0 +1,9 @@
# Find the RDKitPython dependencies
include(CMakeFindDependencyMacro)
find_dependency(Python3 @Python3_VERSION_MAJOR@.@Python3_VERSION_MINOR@ COMPONENTS Interpreter Development.Module NumPy)
find_dependency(Boost @Boost_VERSION_STRING@ COMPONENTS python@Python3_VERSION_MAJOR@@Python3_VERSION_MINOR@ numpy@Python3_VERSION_MAJOR@@Python3_VERSION_MINOR@)
find_dependency(RDKit @RDKit_RELEASENAME@ REQUIRED)
# Import the targets
include("${CMAKE_CURRENT_LIST_DIR}/@RDKitPython_EXPORTED_TARGETS@.cmake")