mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
* change minimal cmake version to a consistent 3.5 * progress towards a cleanup * get the basic python deps working * two more libs * another round of changes all tests pass at this point * next round of changes all tests pass at this point * close to done all tests pass * very close * almost done * shift the RDBoost dependencies around a bit * remove an extraneous python linkage this is trying to get the mac builds working again * Only link to python if it was built shared (#3091) * change in response to review Co-Authored-By: Ric <ricrogz@users.noreply.github.com> * move that suppression of the maybe-uninitialized warning to BoostStartInclude.h Co-authored-by: Brian Kelley <fustigator@gmail.com> Co-authored-by: Ric <ricrogz@users.noreply.github.com>
84 lines
3.2 KiB
CMake
84 lines
3.2 KiB
CMake
remove_definitions(-DRDKIT_GRAPHMOL_BUILD)
|
|
rdkit_python_extension(rdchem
|
|
rdchem.cpp Table.cpp Atom.cpp Bond.cpp Mol.cpp
|
|
Conformer.cpp RingInfo.cpp EditableMol.cpp MonomerInfo.cpp
|
|
ResonanceMolSupplier.cpp MolBundle.cpp StereoGroup.cpp SubstanceGroup.cpp
|
|
DEST Chem
|
|
LINK_LIBRARIES
|
|
SmilesParse ChemTransforms SubstructMatch GraphMol)
|
|
|
|
rdkit_python_extension(rdmolops
|
|
rdmolops.cpp MolOps.cpp
|
|
DEST Chem
|
|
LINK_LIBRARIES
|
|
ChemReactions MolDraw2D Depictor
|
|
FileParsers SubstructMatch Fingerprints ChemTransforms
|
|
Subgraphs SmilesParse MolTransforms GraphMol )
|
|
|
|
rdkit_python_extension(rdqueries
|
|
rdqueries.cpp Queries.cpp
|
|
DEST Chem
|
|
LINK_LIBRARIES
|
|
GraphMol )
|
|
|
|
if(RDK_BUILD_COORDGEN_SUPPORT)
|
|
set (maesupplier MaeMolSupplier.cpp)
|
|
include_directories(${maeparser_INCLUDE_DIRS})
|
|
endif()
|
|
|
|
if(RDK_BUILD_COMPRESSED_SUPPLIERS)
|
|
find_package(Boost 1.56.0 COMPONENTS iostreams REQUIRED)
|
|
if (NOT Boost_USE_STATIC_LIBS)
|
|
add_definitions("-DBOOST_IOSTREAMS_DYN_LINK")
|
|
endif()
|
|
set(rdmolfiles_sources rdmolfiles.cpp
|
|
ForwardSDMolSupplier.cpp ${maesupplier}
|
|
SDMolSupplier.cpp TDTMolSupplier.cpp
|
|
SmilesMolSupplier.cpp SmilesWriter.cpp SDWriter.cpp
|
|
TDTWriter.cpp CompressedSDMolSupplier.cpp
|
|
PDBWriter.cpp )
|
|
else(RDK_BUILD_COMPRESSED_SUPPLIERS)
|
|
set(rdmolfiles_sources rdmolfiles.cpp
|
|
ForwardSDMolSupplier.cpp ${maesupplier}
|
|
SDMolSupplier.cpp TDTMolSupplier.cpp
|
|
SmilesMolSupplier.cpp SmilesWriter.cpp SDWriter.cpp
|
|
TDTWriter.cpp
|
|
PDBWriter.cpp )
|
|
endif(RDK_BUILD_COMPRESSED_SUPPLIERS)
|
|
|
|
rdkit_python_extension(rdmolfiles
|
|
${rdmolfiles_sources}
|
|
DEST Chem
|
|
LINK_LIBRARIES SubstructMatch
|
|
SmilesParse FileParsers GraphMol
|
|
RDGeometryLib RDGeneral RDBoost)
|
|
|
|
rdkit_python_extension(rdtrajectory
|
|
Trajectory.cpp rdTrajectory.cpp
|
|
DEST Chem
|
|
LINK_LIBRARIES Trajectory RDGeometryLib RDGeneral RDBoost GraphMol)
|
|
|
|
if(RDK_BUILD_COMPRESSED_SUPPLIERS)
|
|
set_target_properties(rdmolfiles PROPERTIES DEFINE_SYMBOL SUPPORT_COMPRESSED_SUPPLIERS )
|
|
endif(RDK_BUILD_COMPRESSED_SUPPLIERS)
|
|
|
|
add_pytest(pyGraphMolWrap
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rough_test.py)
|
|
|
|
add_pytest(pyTestConformerWrap
|
|
${CMAKE_CURRENT_SOURCE_DIR}/testConformer.py)
|
|
|
|
add_pytest(pyTestTrajectory
|
|
${CMAKE_CURRENT_SOURCE_DIR}/testTrajectory.py)
|
|
|
|
add_pytest(pyTestSGroups
|
|
${CMAKE_CURRENT_SOURCE_DIR}/testSGroups.py)
|
|
|
|
if (RDK_TEST_MULTITHREADED)
|
|
add_pytest(pyTestThreads
|
|
${CMAKE_CURRENT_SOURCE_DIR}/testThreads.py)
|
|
endif (RDK_TEST_MULTITHREADED)
|
|
|
|
add_pytest(pyTestPropertyLists
|
|
${CMAKE_CURRENT_SOURCE_DIR}/testPropertyLists.py)
|