
remove_definitions(-DRDKIT_GRAPHMOL_BUILD)
add_definitions(-DRDKIT_RGROUPDECOMPOSITION_BUILD)
rdkit_library(RGroupDecomposition RGroupDecomp.cpp
  LINK_LIBRARIES
  FMCS ChemTransforms SubstructMatch SmilesParse 
  ${RDKit_THREAD_LIBS})

rdkit_headers(
   RGroupDecomp.h
   DEST GraphMol/RGroupDecomposition)


if(RDK_BUILD_PYTHON_WRAPPERS)
add_subdirectory(Wrap)
endif()


rdkit_test(testRGroupDecomp testRGroupDecomp.cpp 
           LINK_LIBRARIES RGroupDecomposition ChemTransforms FMCS FileParsers
           SmilesParse SubstructMatch GraphMol RDGeometryLib RDGeneral
           ${RDKit_THREAD_LIBS})
