mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
30 lines
981 B
CMake
30 lines
981 B
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)
|
|
|
|
rdkit_library(SubstructLibrary
|
|
SubstructLibrary.cpp
|
|
PatternFactory.cpp
|
|
LINK_LIBRARIES Fingerprints SubstructMatch SmilesParse
|
|
GraphMol Catalogs DataStructs RDGeneral ${RDKit_SERIALIZATION_LIBS})
|
|
target_compile_definitions(SubstructLibrary PRIVATE RDKIT_SUBSTRUCTLIBRARY_BUILD)
|
|
|
|
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 FileParsers )
|
|
|
|
endif(RDK_BUILD_THREADSAFE_SSS)
|