mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-07 22:44:25 +08:00
* Add threaded pattern generator to help speed up library creation * Add size to FPHolderBase * Add more complete python wrapper, fix leak in doctest * Add basic usage test for addPatterns, fix I/O leak * Add basic test for trusted smiles * Actually add the new code * Export addPatterns on windows * Try fixing the cartridge build * Change pattern_factory to PatternFactory * Change boost::ref to std::ref
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
if(RDK_USE_BOOST_SERIALIZATION AND Boost_SERIALIZATION_LIBRARY)
|
|
set(RDKit_SERIALIZATION_LIBS ${Boost_SERIALIZATION_LIBRARY})
|
|
else()
|
|
message("== Making SubstructLibrary without boost Serialization support")
|
|
set(RDKit_SERIALIZATION_LIBS )
|
|
endif()
|
|
|
|
if(RDK_BUILD_THREADSAFE_SSS)
|
|
|
|
remove_definitions(-DRDKIT_GRAPHMOL_BUILD)
|
|
add_definitions(-DRDKIT_SUBSTRUCTLIBRARY_BUILD)
|
|
rdkit_library(SubstructLibrary
|
|
SubstructLibrary.cpp
|
|
PatternFactory.cpp
|
|
LINK_LIBRARIES Fingerprints SubstructMatch SmilesParse
|
|
GraphMol RDGeometryLib Catalogs RDGeneral DataStructs ${RDKit_SERIALIZATION_LIBS})
|
|
|
|
rdkit_headers(SubstructLibrary.h
|
|
SubstructLibrarySerialization.h
|
|
PatternFactory.h
|
|
DEST GraphMol/SubstructLibrary)
|
|
|
|
if(RDK_BUILD_PYTHON_WRAPPERS)
|
|
add_subdirectory(Wrap)
|
|
endif()
|
|
|
|
rdkit_test(substructLibraryTest substructLibraryTest.cpp
|
|
LINK_LIBRARIES SubstructLibrary Fingerprints
|
|
SubstructMatch FileParsers SmilesParse GraphMol RDGeometryLib RDGeneral DataStructs
|
|
${RDKit_SERIALIZATION_LIBS})
|
|
|
|
endif(RDK_BUILD_THREADSAFE_SSS)
|