Files
rdkit/Code/GraphMol/SubstructLibrary/CMakeLists.txt
Brian Kelley 57a891bff2 Add serialization to SubstructLibrary (#2295)
* WIP - Substruct Library Serialization

* Add serialization to SubstructLibrary

* Add SubstructLibraryDefs

This holds the definition of whether the substruct 
library is serializable

* Wrap serialization in python

* Remove .h file, add .h.in file

* Configure header file into source dir

* Use RDConfig.h to configure serialization

* Move serialization code to seperate header file

* Fixes for review comments

* Removes some code redundancy

* Make pickling mols less memory intensive

* Check if molholders come back as the right types
2019-03-02 16:31:40 +01:00

35 lines
1.1 KiB
CMake

if(RDK_USE_BOOST_SERIALIZATION AND Boost_SERIALIZATION_LIBRARY)
set(RDKit_SERIALIZATION_LIBS ${Boost_SERIALIZATION_LIBRARY})
add_definitions(-DRDK_USE_BOOST_SERIALIZATION)
else()
message("== Making SubstructLibrary without boost Serialization support")
remove_definitions(-DRDK_USE_BOOST_SERIALIZATION)
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
LINK_LIBRARIES Fingerprints SubstructMatch SmilesParse
GraphMol RDGeometryLib Catalogs RDGeneral DataStructs ${RDKit_SERIALIZATION_LIBS})
rdkit_headers(SubstructLibrary.h
SubstructLibrarySerialization.h
DEST GraphMol/SubstructLibrary)
add_subdirectory(Wrap)
rdkit_test(substructLibraryTest substructLibraryTest.cpp
LINK_LIBRARIES SubstructLibrary Fingerprints
SubstructMatch FileParsers SmilesParse GraphMol RDGeometryLib RDGeneral DataStructs
${RDKit_SERIALIZATION_LIBS})
endif(RDK_BUILD_THREADSAFE_SSS)